diff options
Diffstat (limited to 'catalog-dao/src/test/java/org/openecomp/sdc/be/dao/graph/datatype/RelationEndPointTest.java')
-rw-r--r-- | catalog-dao/src/test/java/org/openecomp/sdc/be/dao/graph/datatype/RelationEndPointTest.java | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/graph/datatype/RelationEndPointTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/graph/datatype/RelationEndPointTest.java new file mode 100644 index 0000000000..7e1a8358cf --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/graph/datatype/RelationEndPointTest.java @@ -0,0 +1,114 @@ +package org.openecomp.sdc.be.dao.graph.datatype; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.datatypes.enums.NodeTypeEnum; + +public class RelationEndPointTest { + + private RelationEndPoint createTestSubject() { + return new RelationEndPoint(NodeTypeEnum.AdditionalInfoParameters, "", null); + } + + @Test + public void testGetLabel() throws Exception { + RelationEndPoint testSubject; + NodeTypeEnum result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLabel(); + } + + @Test + public void testSetLabel() throws Exception { + RelationEndPoint testSubject; + NodeTypeEnum label = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLabel(label); + } + + @Test + public void testGetIdName() throws Exception { + RelationEndPoint testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIdName(); + } + + @Test + public void testSetIdName() throws Exception { + RelationEndPoint testSubject; + String idName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setIdName(idName); + } + + @Test + public void testGetIdValue() throws Exception { + RelationEndPoint testSubject; + Object result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIdValue(); + } + + @Test + public void testSetIdValue() throws Exception { + RelationEndPoint testSubject; + Object idValue = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIdValue(idValue); + } + + @Test + public void testToString() throws Exception { + RelationEndPoint testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + RelationEndPoint testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + RelationEndPoint testSubject; + Object obj = null; + boolean result; + + // test 1 + testSubject = createTestSubject(); + obj = null; + result = testSubject.equals(obj); + Assert.assertEquals(false, result); + + result = testSubject.equals(testSubject); + Assert.assertEquals(true, result); + + result = testSubject.equals(createTestSubject()); + Assert.assertEquals(true, result); + + result = testSubject.equals(new Object()); + Assert.assertEquals(false, result); + } +}
\ No newline at end of file |