use of io.swagger.models.properties.BaseIntegerProperty in project swagger-core by swagger-api.
the class AbstractSerializableParameterTest method testGetExampleWithBaseIntegerProperty.
@Test
public void testGetExampleWithBaseIntegerProperty() {
// given
instance.setProperty(new BaseIntegerProperty());
String example = "14";
// when
instance.setExample(example);
// then
assertEquals(instance.getExample(), 14L, "The get example must be the same as the set one");
}
use of io.swagger.models.properties.BaseIntegerProperty in project swagger-core by swagger-api.
the class AbstractSerializableParameterTest method testGetDefaultWithBaseIntegerProperty.
@Test
public void testGetDefaultWithBaseIntegerProperty() {
// given
instance.setProperty(new BaseIntegerProperty());
defaultValue = 14;
// when
instance.setDefault(defaultValue);
// then
assertEquals(instance.getDefault(), 14L, "The get default must be the same as the set one");
}
Aggregations