forked from loafle/openapi-generator-original
Restore unit test that consider minLength, maxLength and pattern (#401)
when they are defined in a in referenced schema Originally introduced with 6b8079808b0d1d730324caf26489030a0cd960bd (#45), commented with 85090f506855d0a1a50f7d3337d21ec1dcbbc62c (#82).
This commit is contained in:
parent
66b73e906e
commit
ea81b0c833
@ -943,11 +943,11 @@ public class JavaModelTest {
|
||||
Assert.assertTrue(cp.isNotContainer);
|
||||
Assert.assertFalse(cp.isLong);
|
||||
Assert.assertFalse(cp.isInteger);
|
||||
// Assert.assertTrue(cp.isString); //TODO: issue swagger-api/swagger-codegen#8001
|
||||
Assert.assertTrue(cp.isString);
|
||||
Assert.assertEquals(cp.getter, "getSomePropertyWithMinMaxAndPattern");
|
||||
// Assert.assertEquals(cp.minLength, Integer.valueOf(3)); //TODO: issue swagger-api/swagger-codegen#8001
|
||||
// Assert.assertEquals(cp.maxLength, Integer.valueOf(10)); //TODO: issue swagger-api/swagger-codegen#8001
|
||||
// Assert.assertEquals(cp.pattern, "^[A-Z]+$"); //TODO: issue swagger-api/swagger-codegen#8001
|
||||
Assert.assertEquals(cp.minLength, Integer.valueOf(3));
|
||||
Assert.assertEquals(cp.maxLength, Integer.valueOf(10));
|
||||
Assert.assertEquals(cp.pattern, "^[A-Z]+$");
|
||||
}
|
||||
|
||||
@Test(description = "convert an array schema")
|
||||
|
Loading…
x
Reference in New Issue
Block a user