You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: polyapi-maven-plugin/src/test/java/io/polyapi/plugin/service/JsonSchemaParserTest.java
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,8 +38,10 @@ public static Stream<Arguments> generateSource() {
38
38
createArguments(11, "Schema that uses allof."),
39
39
createArguments(12, "Schema with enum with '-' in one of the options.", "Identifier", "TestResponse"),
40
40
createArguments(13, "Schema with different types that have the same enum.", "Identifier", DEFAULT_RESPONSE_NAME, "Data"),
41
-
createArguments(14, "Schema that is an Integer."));
41
+
createArguments(14, "Schema that is an Integer."),
42
+
createArguments(15, "Schema with multiple enums with the same name and properties.", DEFAULT_RESPONSE_NAME, "DashMinusstyle", "DashMinusstyle_", "Other"));
42
43
}
44
+
43
45
publicstaticStream<Arguments> getTypeSource() {
44
46
returnStream.of(Arguments.of(1, "Simple recursive schema with no base type.", createClassName(DEFAULT_RESPONSE_NAME)),
45
47
Arguments.of(2, "Recursive schema with base type.", createClassName(DEFAULT_RESPONSE_NAME)),
@@ -80,6 +82,7 @@ public void generateTest(Integer caseNumber, String description, List<String> ex
expectedNames.forEach(expectedName -> assertTrue(customTypeNames.contains(expectedName), format("Result should contain object with name %s. Result contains %s.", expectedName, customTypeNames)));
0 commit comments