e2fceddcf67bb495288dbb2b367d5fbecf5eac6f
[sdc.git] /
1 package org.openecomp.sdc.be.components.impl;
2
3 import java.util.List;
4
5 import javax.servlet.ServletContext;
6
7 import org.junit.Test;
8 import org.openecomp.sdc.be.datatypes.elements.AdditionalInfoParameterInfo;
9 import org.openecomp.sdc.be.datatypes.enums.NodeTypeEnum;
10 import org.openecomp.sdc.be.model.AdditionalInformationDefinition;
11 import org.openecomp.sdc.be.model.operations.api.IElementOperation;
12 import org.openecomp.sdc.exception.ResponseFormat;
13
14 import fj.data.Either;
15
16
17 public class AdditionalInformationBusinessLogicTest {
18
19         private AdditionalInformationBusinessLogic createTestSubject() {
20                 return new AdditionalInformationBusinessLogic();
21         }
22
23         
24         @Test
25         public void testGetElementDao() throws Exception {
26         Class<IElementOperation> class1 = null;
27         ServletContext context = null;
28         IElementOperation result;
29         
30         // default test
31         }
32
33         
34         @Test
35         public void testCreateAdditionalInformation() throws Exception {
36                 AdditionalInformationBusinessLogic testSubject;
37                 NodeTypeEnum nodeType = null;
38                 String resourceId = "";
39                 AdditionalInfoParameterInfo additionalInfoParameterInfo = null;
40                 String additionalInformationUid = "";
41                 String userId = "";
42                 Either<AdditionalInfoParameterInfo, ResponseFormat> result;
43
44                 // default test
45                 testSubject = createTestSubject();
46         }
47
48         
49         @Test
50         public void testValidateAndConvertValue() throws Exception {
51                 AdditionalInformationBusinessLogic testSubject;
52                 AdditionalInfoParameterInfo additionalInfoParameterInfo = null;
53                 String context = "";
54                 ResponseFormat result;
55
56                 // default test
57                 testSubject = createTestSubject();
58         }
59
60         
61         @Test
62         public void testValidateAndConvertKey() throws Exception {
63                 AdditionalInformationBusinessLogic testSubject;
64                 AdditionalInfoParameterInfo additionalInfoParameterInfo = null;
65                 String context = "";
66                 ResponseFormat result;
67
68                 // default test
69                 testSubject = createTestSubject();
70         }
71
72         
73         @Test
74         public void testValidateMaxSizeNotReached() throws Exception {
75                 AdditionalInformationBusinessLogic testSubject;
76                 NodeTypeEnum nodeType = null;
77                 String componentId = "";
78                 AdditionalInfoParameterInfo additionalInfoParameterInfo = null;
79                 ResponseFormat result;
80
81                 // default test
82                 testSubject = createTestSubject();
83         }
84
85         
86         @Test
87         public void testValidateValue() throws Exception {
88                 AdditionalInformationBusinessLogic testSubject;
89                 String value = "";
90                 Either<String, ResponseFormat> result;
91
92                 // default test
93                 testSubject = createTestSubject();
94         }
95
96         
97         @Test
98         public void testFindAdditionInformationKey() throws Exception {
99         AdditionalInformationBusinessLogic testSubject;List<AdditionalInfoParameterInfo> parameters = null;
100         String key = "";
101         AdditionalInfoParameterInfo result;
102         
103         // default test
104         }
105
106         
107         @Test
108         public void testValidateAndNormalizeKey() throws Exception {
109                 AdditionalInformationBusinessLogic testSubject;
110                 String key = "";
111                 Either<String, ResponseFormat> result;
112
113                 // default test
114                 testSubject = createTestSubject();
115         }
116
117         
118         @Test
119         public void testUpdateAdditionalInformation() throws Exception {
120                 AdditionalInformationBusinessLogic testSubject;
121                 NodeTypeEnum nodeType = null;
122                 String resourceId = "";
123                 AdditionalInfoParameterInfo additionalInfoParameterInfo = null;
124                 String additionalInformationUid = "";
125                 String userId = "";
126                 Either<AdditionalInfoParameterInfo, ResponseFormat> result;
127
128                 // default test
129                 testSubject = createTestSubject();
130         }
131
132         
133         @Test
134         public void testDeleteAdditionalInformation() throws Exception {
135                 AdditionalInformationBusinessLogic testSubject;
136                 NodeTypeEnum nodeType = null;
137                 String resourceId = "";
138                 AdditionalInfoParameterInfo additionalInfoParameterInfo = null;
139                 String additionalInformationUid = "";
140                 String userId = "";
141                 Either<AdditionalInfoParameterInfo, ResponseFormat> result;
142
143                 // default test
144                 testSubject = createTestSubject();
145         }
146
147         
148         @Test
149         public void testGetAdditionalInformation() throws Exception {
150                 AdditionalInformationBusinessLogic testSubject;
151                 NodeTypeEnum nodeType = null;
152                 String resourceId = "";
153                 AdditionalInfoParameterInfo additionalInfoParameterInfo = null;
154                 String additionalInformationUid = "";
155                 String userId = "";
156                 Either<AdditionalInfoParameterInfo, ResponseFormat> result;
157
158                 // default test
159                 testSubject = createTestSubject();
160         }
161
162         
163         @Test
164         public void testGetAllAdditionalInformation() throws Exception {
165                 AdditionalInformationBusinessLogic testSubject;
166                 NodeTypeEnum nodeType = null;
167                 String resourceId = "";
168                 String additionalInformationUid = "";
169                 String userId = "";
170                 Either<AdditionalInformationDefinition, ResponseFormat> result;
171
172                 // default test
173                 testSubject = createTestSubject();
174         }
175
176         
177         @Test
178         public void testVerifyCanWorkOnComponent() throws Exception {
179                 AdditionalInformationBusinessLogic testSubject;
180                 NodeTypeEnum nodeType = null;
181                 String resourceId = "";
182                 String userId = "";
183                 ResponseFormat result;
184
185                 // default test
186         }
187 }