use of io.swagger.models.ModelWithBooleanProperty in project swagger-core by swagger-api.
the class ModelPropertyTest method testIssue1743.
@Test
public void testIssue1743() {
final Map<String, Model> models = ModelConverters.getInstance().readAll(ModelWithBooleanProperty.class);
final Model model = models.get("ModelWithBooleanProperty");
assertNotNull(model);
BooleanProperty bp = (BooleanProperty) model.getProperties().get("isGreat");
assertTrue(bp.getEnum().size() == 1);
assertEquals(bp.getEnum().get(0), Boolean.TRUE);
}
Aggregations