1 package org.openecomp.sdc.be.model;
4 import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition;
5 import org.openecomp.sdc.be.datatypes.elements.PropertyRule;
10 public class ComponentInstanceInputTest {
12 private ComponentInstanceInput createTestSubject() {
13 return new ComponentInstanceInput();
17 public void testCtor() throws Exception {
18 new ComponentInstanceInput(new PropertyDataDefinition());
19 new ComponentInstanceInput(new InputDefinition(), "mock", "mock");
20 new ComponentInstanceInput(new PropertyDataDefinition(), "mock", "mock", "mock");
24 public void testGetComponentInstanceName() throws Exception {
25 ComponentInstanceInput testSubject;
29 testSubject = createTestSubject();
30 result = testSubject.getComponentInstanceName();
35 public void testSetComponentInstanceName() throws Exception {
36 ComponentInstanceInput testSubject;
37 String componentInstanceName = "";
40 testSubject = createTestSubject();
41 testSubject.setComponentInstanceName(componentInstanceName);
46 public void testGetComponentInstanceId() throws Exception {
47 ComponentInstanceInput testSubject;
51 testSubject = createTestSubject();
52 result = testSubject.getComponentInstanceId();
57 public void testSetComponentInstanceId() throws Exception {
58 ComponentInstanceInput testSubject;
59 String componentInstanceId = "";
62 testSubject = createTestSubject();
63 testSubject.setComponentInstanceId(componentInstanceId);
68 public void testGetValueUniqueUid() throws Exception {
69 ComponentInstanceInput testSubject;
73 testSubject = createTestSubject();
74 result = testSubject.getValueUniqueUid();
79 public void testSetValueUniqueUid() throws Exception {
80 ComponentInstanceInput testSubject;
81 String valueUniqueUid = "";
84 testSubject = createTestSubject();
85 testSubject.setValueUniqueUid(valueUniqueUid);
90 public void testGetPath() throws Exception {
91 ComponentInstanceInput testSubject;
95 testSubject = createTestSubject();
96 result = testSubject.getPath();
101 public void testSetPath() throws Exception {
102 ComponentInstanceInput testSubject;
103 List<String> path = null;
106 testSubject = createTestSubject();
107 testSubject.setPath(path);
112 public void testGetRules() throws Exception {
113 ComponentInstanceInput testSubject;
114 List<PropertyRule> result;
117 testSubject = createTestSubject();
118 result = testSubject.getRules();
123 public void testSetRules() throws Exception {
124 ComponentInstanceInput testSubject;
125 List<PropertyRule> rules = null;
128 testSubject = createTestSubject();
129 testSubject.setRules(rules);
134 public void testToString() throws Exception {
135 ComponentInstanceInput testSubject;
139 testSubject = createTestSubject();
140 result = testSubject.toString();