Getter/setter tests inside the aai model
[vid.git] / vid-app-common / src / test / java / org / onap / vid / aai / model / AaiRelationResponseTest.java
index d9f3fe5..3eaa75d 100644 (file)
@@ -2,49 +2,14 @@ package org.onap.vid.aai.model;
 
 import org.junit.Test;
 
-public class AaiRelationResponseTest {
-
-    private AaiRelationResponse createTestSubject() {
-        return new AaiRelationResponse();
-    }
-
-    @Test
-    public void testGetResourceVersion() throws Exception {
-        AaiRelationResponse testSubject;
-        String result;
-
-        // default test
-        testSubject = createTestSubject();
-        result = testSubject.getResourceVersion();
-    }
+import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSetters;
+import static org.hamcrest.MatcherAssert.assertThat;
 
-    @Test
-    public void testSetResourceVersion() throws Exception {
-        AaiRelationResponse testSubject;
-        String resourceVersion = "";
-
-        // default test
-        testSubject = createTestSubject();
-        testSubject.setResourceVersion(resourceVersion);
-    }
+public class AaiRelationResponseTest {
 
     @Test
-    public void testGetRelationshipList() throws Exception {
-        AaiRelationResponse testSubject;
-        RelationshipList result;
-
-        // default test
-        testSubject = createTestSubject();
-        result = testSubject.getRelationshipList();
+    public void shouldHaveValidGettersAndSetters(){
+        assertThat(AaiRelationResponse.class, hasValidGettersAndSetters());
     }
 
-    @Test
-    public void testSetRelationshipList() throws Exception {
-        AaiRelationResponse testSubject;
-        RelationshipList relationshipList = null;
-
-        // default test
-        testSubject = createTestSubject();
-        testSubject.setRelationshipList(relationshipList);
-    }
 }
\ No newline at end of file