mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
test fix
This commit is contained in:
parent
8da197ced7
commit
bcd3c2cb32
@ -287,8 +287,8 @@ public class JavaModelTest {
|
||||
Assert.assertEquals(cm.description, "an array model");
|
||||
Assert.assertEquals(cm.vars.size(), 0);
|
||||
Assert.assertEquals(cm.parent, "ArrayList<Children>");
|
||||
Assert.assertEquals(cm.imports.size(), 3);
|
||||
Assert.assertEquals(Sets.intersection(cm.imports, Sets.newHashSet("List", "ArrayList", "Children")).size(), 3);
|
||||
Assert.assertEquals(cm.imports.size(), 4);
|
||||
Assert.assertEquals(Sets.intersection(cm.imports, Sets.newHashSet("ApiModel", "List", "ArrayList", "Children")).size(), 4);
|
||||
}
|
||||
|
||||
@Test(description = "convert an map model")
|
||||
@ -304,8 +304,8 @@ public class JavaModelTest {
|
||||
Assert.assertEquals(cm.description, "an map model");
|
||||
Assert.assertEquals(cm.vars.size(), 0);
|
||||
Assert.assertEquals(cm.parent, "HashMap<String, Children>");
|
||||
Assert.assertEquals(cm.imports.size(), 3);
|
||||
Assert.assertEquals(Sets.intersection(cm.imports, Sets.newHashSet("Map", "HashMap", "Children")).size(), 3);
|
||||
Assert.assertEquals(cm.imports.size(), 4);
|
||||
Assert.assertEquals(Sets.intersection(cm.imports, Sets.newHashSet("ApiModel", "Map", "HashMap", "Children")).size(), 4);
|
||||
}
|
||||
|
||||
@Test(description = "convert a model with upper-case property names")
|
||||
|
Loading…
Reference in New Issue
Block a user