diff options
Diffstat (limited to 'catalog-be/src/test/java/org/openecomp/sdc/be/info/RelationshipTest.java')
-rw-r--r-- | catalog-be/src/test/java/org/openecomp/sdc/be/info/RelationshipTest.java | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/info/RelationshipTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/info/RelationshipTest.java new file mode 100644 index 0000000000..8463495542 --- /dev/null +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/info/RelationshipTest.java @@ -0,0 +1,112 @@ +package org.openecomp.sdc.be.info; + +import java.util.List; + +import org.junit.Test; + +public class RelationshipTest { + + private Relationship createTestSubject() { + return new Relationship(); + } + + @Test + public void testGetRelatedTo() throws Exception { + Relationship testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRelatedTo(); + } + + @Test + public void testSetRelatedTo() throws Exception { + Relationship testSubject; + String relatedTo = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRelatedTo(relatedTo); + } + + @Test + public void testGetRelatedLink() throws Exception { + Relationship testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRelatedLink(); + } + + @Test + public void testSetRelatedLink() throws Exception { + Relationship testSubject; + String relatedLink = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRelatedLink(relatedLink); + } + + @Test + public void testGetRelationshipData() throws Exception { + Relationship testSubject; + List<RelationshipData> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRelationshipData(); + } + + @Test + public void testSetRelationshipData() throws Exception { + Relationship testSubject; + List<RelationshipData> relationshipData = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRelationshipData(relationshipData); + } + + @Test + public void testGetRelationshipLabel() throws Exception { + Relationship testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRelationshipLabel(); + } + + @Test + public void testSetRelationshipLabel() throws Exception { + Relationship testSubject; + String relationshipLabel = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRelationshipLabel(relationshipLabel); + } + + @Test + public void testGetRelatedToProperty() throws Exception { + Relationship testSubject; + List<RelatedToProperty> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRelatedToProperty(); + } + + @Test + public void testSetRelatedToProperty() throws Exception { + Relationship testSubject; + List<RelatedToProperty> relatedToProperty = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRelatedToProperty(relatedToProperty); + } +}
\ No newline at end of file |