use of io.swagger.models.properties.ArrayProperty in project swagger-core by swagger-api.
the class ModelImplTest method testClone.
@Test
public void testClone() {
// given
propertiesAndValues = new Object[] { "additionalProperties", new ArrayProperty(), "description", "description", "discriminator", "discriminator", "example", new Object(), "isSimple", true, "name", "name", "properties", new HashMap<String, Property>(), "required", new ArrayList<String>(), "type", "type", "xml", new Xml(), "defaultValue", "defaultValue" };
TestUtils.testClone(instance, propertiesAndValues);
}
use of io.swagger.models.properties.ArrayProperty in project java-chassis by ServiceComb.
the class TestApiOperation method testSet.
private void testSet(Path path) {
Operation operation = path.getPost();
Property result200 = operation.getResponses().get("200").getSchema();
Assert.assertEquals(ArrayProperty.class, result200.getClass());
Assert.assertEquals(true, ((ArrayProperty) result200).getUniqueItems());
}
use of io.swagger.models.properties.ArrayProperty in project java-chassis by ServiceComb.
the class TestApiOperation method testList.
private void testList(Path path) {
Operation operation = path.getPost();
Property result200 = operation.getResponses().get("200").getSchema();
Assert.assertEquals(ArrayProperty.class, result200.getClass());
Assert.assertEquals(null, ((ArrayProperty) result200).getUniqueItems());
}
Aggregations