re base code
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / ComponentInstancePropertyTest.java
1 package org.openecomp.sdc.be.model;
2
3 import org.junit.Test;
4 import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition;
5 import org.openecomp.sdc.be.datatypes.elements.PropertyRule;
6
7 import java.util.List;
8
9
10 public class ComponentInstancePropertyTest {
11
12         private ComponentInstanceProperty createTestSubject() {
13                 return new ComponentInstanceProperty();
14         }
15
16         @Test
17         public void testCtor() throws Exception {
18                 new ComponentInstanceProperty(new PropertyDataDefinition());
19                 new ComponentInstanceProperty(new PropertyDefinition());
20                 new ComponentInstanceProperty(false, new PropertyDefinition(), "mock");
21                 new ComponentInstanceProperty(new PropertyDefinition(), "mock", "mock");
22         }
23         
24         @Test
25         public void testGetComponentInstanceName() throws Exception {
26                 ComponentInstanceProperty testSubject;
27                 String result;
28
29                 // default test
30                 testSubject = createTestSubject();
31                 result = testSubject.getComponentInstanceName();
32         }
33
34         
35         @Test
36         public void testSetComponentInstanceName() throws Exception {
37                 ComponentInstanceProperty testSubject;
38                 String componentInstanceName = "";
39
40                 // default test
41                 testSubject = createTestSubject();
42                 testSubject.setComponentInstanceName(componentInstanceName);
43         }
44
45         
46         @Test
47         public void testGetComponentInstanceId() throws Exception {
48                 ComponentInstanceProperty testSubject;
49                 String result;
50
51                 // default test
52                 testSubject = createTestSubject();
53                 result = testSubject.getComponentInstanceId();
54         }
55
56         
57         @Test
58         public void testSetComponentInstanceId() throws Exception {
59                 ComponentInstanceProperty testSubject;
60                 String componentInstanceId = "";
61
62                 // default test
63                 testSubject = createTestSubject();
64                 testSubject.setComponentInstanceId(componentInstanceId);
65         }
66
67         
68         @Test
69         public void testGetValueUniqueUid() throws Exception {
70                 ComponentInstanceProperty testSubject;
71                 String result;
72
73                 // default test
74                 testSubject = createTestSubject();
75                 result = testSubject.getValueUniqueUid();
76         }
77
78         
79         @Test
80         public void testSetValueUniqueUid() throws Exception {
81                 ComponentInstanceProperty testSubject;
82                 String valueUniqueUid = "";
83
84                 // default test
85                 testSubject = createTestSubject();
86                 testSubject.setValueUniqueUid(valueUniqueUid);
87         }
88
89         
90         @Test
91         public void testGetPath() throws Exception {
92                 ComponentInstanceProperty testSubject;
93                 List<String> result;
94
95                 // default test
96                 testSubject = createTestSubject();
97                 result = testSubject.getPath();
98         }
99
100         
101         @Test
102         public void testSetPath() throws Exception {
103                 ComponentInstanceProperty testSubject;
104                 List<String> path = null;
105
106                 // default test
107                 testSubject = createTestSubject();
108                 testSubject.setPath(path);
109         }
110
111         
112         @Test
113         public void testGetRules() throws Exception {
114                 ComponentInstanceProperty testSubject;
115                 List<PropertyRule> result;
116
117                 // default test
118                 testSubject = createTestSubject();
119                 result = testSubject.getRules();
120         }
121
122         
123         @Test
124         public void testSetRules() throws Exception {
125                 ComponentInstanceProperty testSubject;
126                 List<PropertyRule> rules = null;
127
128                 // default test
129                 testSubject = createTestSubject();
130                 testSubject.setRules(rules);
131         }
132
133         
134         @Test
135         public void testToString() throws Exception {
136                 ComponentInstanceProperty testSubject;
137                 String result;
138
139                 // default test
140                 testSubject = createTestSubject();
141                 result = testSubject.toString();
142         }
143 }