1 package org.openecomp.sdc.be.model;
5 import java.util.LinkedList;
8 public class TargetCapabilityRelDefTest {
10 private TargetCapabilityRelDef createTestSubject() {
11 return new TargetCapabilityRelDef();
15 public void testCtor() throws Exception {
16 new TargetCapabilityRelDef("mock", new LinkedList<>());
20 public void testGetToNode() throws Exception {
21 TargetCapabilityRelDef testSubject;
25 testSubject = createTestSubject();
26 result = testSubject.getToNode();
30 public void testSetToNode() throws Exception {
31 TargetCapabilityRelDef testSubject;
35 testSubject = createTestSubject();
36 testSubject.setToNode(toNode);
40 public void testGetRelationships() throws Exception {
41 TargetCapabilityRelDef testSubject;
42 List<CapabilityRequirementRelationship> result;
45 testSubject = createTestSubject();
46 result = testSubject.getRelationships();
50 public void testResolveSingleRelationship() throws Exception {
51 TargetCapabilityRelDef testSubject;
52 CapabilityRequirementRelationship result;
55 testSubject = createTestSubject();
56 result = testSubject.resolveSingleRelationship();
60 public void testGetUid() throws Exception {
61 TargetCapabilityRelDef testSubject;
65 testSubject = createTestSubject();
66 result = testSubject.getUid();
70 public void testSetUid() throws Exception {
71 TargetCapabilityRelDef testSubject;
75 testSubject = createTestSubject();
76 testSubject.setUid(uid);
80 public void testSetRelationships() throws Exception {
81 TargetCapabilityRelDef testSubject;
82 List<CapabilityRequirementRelationship> relationships = null;
85 testSubject = createTestSubject();
86 testSubject.setRelationships(relationships);
90 public void testToString() throws Exception {
91 TargetCapabilityRelDef testSubject;
95 testSubject = createTestSubject();
96 result = testSubject.toString();