Search in sources :

Example 1 with UUIDProperty

use of io.swagger.models.properties.UUIDProperty in project swagger-core by swagger-api.

the class UUIDPropertyTest method testEquals.

@Test
public void testEquals() {
    final UUIDProperty prop1 = new UUIDProperty();
    prop1.setName(PROP_1);
    prop1.setRequired(true);
    final UUIDProperty prop2 = new UUIDProperty();
    prop2.setName(PROP_2);
    assertNotEquals(prop1, prop2);
    prop2.setName(PROP_1);
    prop2.setRequired(true);
    assertEquals(prop1, prop2);
}
Also used : UUIDProperty(io.swagger.models.properties.UUIDProperty) Test(org.testng.annotations.Test)

Aggregations

UUIDProperty (io.swagger.models.properties.UUIDProperty)1 Test (org.testng.annotations.Test)1