db9f2564a9021ef2c6fbcba234039d40165da265
[aaf/cadi.git] / cass / src / test / java / org / onap / aaf / cass / AAFBaseTest.java
1 /*******************************************************************************\r
2  * ============LICENSE_START====================================================\r
3  * * org.onap.aaf\r
4  * * ===========================================================================\r
5  * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
6  * * ===========================================================================\r
7  * * Licensed under the Apache License, Version 2.0 (the "License");\r
8  * * you may not use this file except in compliance with the License.\r
9  * * You may obtain a copy of the License at\r
10  * * \r
11  *  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  * * \r
13  *  * Unless required by applicable law or agreed to in writing, software\r
14  * * distributed under the License is distributed on an "AS IS" BASIS,\r
15  * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  * * See the License for the specific language governing permissions and\r
17  * * limitations under the License.\r
18  * * ============LICENSE_END====================================================\r
19  * *\r
20  * * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
21  * *\r
22  ******************************************************************************/\r
23 package org.onap.aaf.cadi.aaf.cass.test;\r
24 \r
25 import org.junit.After;\r
26 import org.junit.Before;\r
27 import org.junit.Test;\r
28 import org.onap.aaf.cadi.aaf.cass.AAFBase;\r
29 \r
30 import static org.junit.Assert.*;\r
31 \r
32 public class AAFBaseTest\r
33 {\r
34         \r
35 \r
36         @Before\r
37         public void setUp()\r
38         {\r
39                 \r
40         }\r
41 \r
42         @After\r
43         public void tearDown()\r
44         {\r
45                 \r
46         }\r
47 \r
48         /*\r
49          * Testing Conditon(s): Default\r
50          */\r
51         @Test\r
52         public void test_method_setAccess_0_branch_0()\r
53         {\r
54                 System.out.println("Now Testing Method:setAccess Branch:0");\r
55                 \r
56                 //Call Method\r
57                 AAFBase.setAccess(null);\r
58                 \r
59         }\r
60 \r
61         /*\r
62          * Testing Conditon(s): if: (!props_ok)\r
63          */\r
64         @Test\r
65         public void test_method_validateConfiguration_1_branch_0()\r
66         {\r
67                 System.out.println("Now Testing Method:validateConfiguration Branch:0");\r
68                 \r
69                 \r
70                 \r
71         }\r
72 \r
73         /*\r
74          * Testing Conditon(s): else: Not (!props_ok)\r
75          */\r
76         @Test\r
77         public void test_method_validateConfiguration_1_branch_1()\r
78         {\r
79                 System.out.println("Now Testing Method:validateConfiguration Branch:1");\r
80                 \r
81         \r
82                 \r
83                 //Call Method\r
84         \r
85                 \r
86         }\r
87 \r
88         /*\r
89          * Testing Conditon(s): if: (aafAuthn == null), if: (access==null), if: (cadi_props == null), if: (cp.exists())\r
90          */\r
91         @Test\r
92         public void test_method_setup_2_branch_0()\r
93         {\r
94                 System.out.println("Now Testing Method:setup Branch:0");\r
95                 \r
96 \r
97                 \r
98         \r
99         }\r
100 \r
101         /*\r
102          * Testing Conditon(s): if: (aafAuthn == null), if: (access==null), if: (cadi_props == null), else: Not (cp.exists())\r
103          */\r
104         @Test\r
105         public void test_method_setup_2_branch_1()\r
106         {\r
107                 System.out.println("Now Testing Method:setup Branch:1");\r
108                 \r
109 \r
110                 \r
111         }\r
112 \r
113         /*\r
114          * Testing Conditon(s): if: (aafAuthn == null), if: (access==null), else: Not (cadi_props == null)\r
115          */\r
116         @Test\r
117         public void test_method_setup_2_branch_2()\r
118         {\r
119                 System.out.println("Now Testing Method:setup Branch:2");\r
120                 \r
121 \r
122         }\r
123 \r
124         /*\r
125          * Testing Conditon(s): if: (aafAuthn == null), else: Not (access==null)\r
126          */\r
127         @Test\r
128         public void test_method_setup_2_branch_3()\r
129         {\r
130                 System.out.println("Now Testing Method:setup Branch:3");\r
131                 \r
132 \r
133         }\r
134 \r
135         /*\r
136          * Testing Conditon(s): if: (aafAuthn == null), if: ((perm_type = Config.logProp(access, "cass_group_name",null))==null)\r
137          */\r
138         @Test\r
139         public void test_method_setup_2_branch_4()\r
140         {\r
141                 System.out.println("Now Testing Method:setup Branch:4");\r
142                 \r
143 \r
144                 \r
145         }\r
146 \r
147         /*\r
148          * Testing Conditon(s): if: (aafAuthn == null), else: Not ((perm_type = Config.logProp(access, "cass_group_name",null))==null)\r
149          */\r
150         @Test\r
151         public void test_method_setup_2_branch_5()\r
152         {\r
153                 System.out.println("Now Testing Method:setup Branch:5");\r
154                 \r
155 \r
156         }\r
157 \r
158         /*\r
159          * Testing Conditon(s): if: (aafAuthn == null), if: ((cluster_name = Config.logProp(access,"cass_cluster_name",null))==null), if: ((cluster_name = DatabaseDescriptor.getClusterName())==null)\r
160          */\r
161         @Test\r
162         public void test_method_setup_2_branch_6()\r
163         {\r
164                 System.out.println("Now Testing Method:setup Branch:6");\r
165                 \r
166 \r
167                 \r
168         }\r
169 \r
170         /*\r
171          * Testing Conditon(s): if: (aafAuthn == null), if: ((cluster_name = Config.logProp(access,"cass_cluster_name",null))==null), else: Not ((cluster_name = DatabaseDescriptor.getClusterName())==null)\r
172          */\r
173         @Test\r
174         public void test_method_setup_2_branch_7()\r
175         {\r
176                 System.out.println("Now Testing Method:setup Branch:7");\r
177                 \r
178 \r
179                 \r
180         }\r
181 \r
182         /*\r
183          * Testing Conditon(s): if: (aafAuthn == null), else: Not ((cluster_name = Config.logProp(access,"cass_cluster_name",null))==null)\r
184          */\r
185         @Test\r
186         public void test_method_setup_2_branch_8()\r
187         {\r
188                 System.out.println("Now Testing Method:setup Branch:8");\r
189                 \r
190 \r
191                 \r
192         }\r
193 \r
194         /*\r
195          * Testing Conditon(s): if: (aafAuthn == null), if: ((default_realm = Config.logProp(access, Config.AAF_DEFAULT_REALM, null))==null)\r
196          */\r
197         @Test\r
198         public void test_method_setup_2_branch_9()\r
199         {\r
200                 System.out.println("Now Testing Method:setup Branch:9");\r
201                 \r
202 \r
203         }\r
204 \r
205         /*\r
206          * Testing Conditon(s): if: (aafAuthn == null), else: Not ((default_realm = Config.logProp(access, Config.AAF_DEFAULT_REALM, null))==null)\r
207          */\r
208         @Test\r
209         public void test_method_setup_2_branch_10()\r
210         {\r
211                 System.out.println("Now Testing Method:setup Branch:10");\r
212 \r
213                 \r
214         }\r
215 \r
216         /*\r
217          * Testing Conditon(s): if: (aafAuthn == null), if: (props_ok==false)\r
218          */\r
219         @Test\r
220         public void test_method_setup_2_branch_11()\r
221         {\r
222                 System.out.println("Now Testing Method:setup Branch:11");\r
223 \r
224                 \r
225         }\r
226 \r
227         /*\r
228          * Testing Conditon(s): if: (aafAuthn == null), else: Not (props_ok==false)\r
229          */\r
230         @Test\r
231         public void test_method_setup_2_branch_12()\r
232         {\r
233                 System.out.println("Now Testing Method:setup Branch:12");\r
234                 \r
235                 \r
236         }\r
237 \r
238         /*\r
239          * Testing Conditon(s): if: (aafAuthn == null), if: (lur instanceof EpiLur), for: (int i=0; (lur = elur.get(i))!=null;++i), if: (lur instanceof AbsAAFLur)\r
240          */\r
241         @Test\r
242         public void test_method_setup_2_branch_13()\r
243         {\r
244                 System.out.println("Now Testing Method:setup Branch:13");\r
245                 \r
246 \r
247                 \r
248         }\r
249 \r
250         /*\r
251          * Testing Conditon(s): if: (aafAuthn == null), if: (lur instanceof EpiLur), for: (int i=0; (lur = elur.get(i))!=null;++i), else: Not (lur instanceof AbsAAFLur), if: (lur instanceof LocalLur)\r
252          */\r
253         @Test\r
254         public void test_method_setup_2_branch_14()\r
255         {\r
256                 System.out.println("Now Testing Method:setup Branch:14");\r
257                 \r
258 \r
259         }\r
260 \r
261         /*\r
262          * Testing Conditon(s): if: (aafAuthn == null), if: (lur instanceof EpiLur), for: (int i=0; (lur = elur.get(i))!=null;++i), else: Not (lur instanceof AbsAAFLur), else: Not (lur instanceof LocalLur)\r
263          */\r
264         @Test\r
265         public void test_method_setup_2_branch_15()\r
266         {\r
267                 System.out.println("Now Testing Method:setup Branch:15");\r
268                 \r
269         \r
270                 \r
271         }\r
272 \r
273         /*\r
274          * Testing Conditon(s): if: (aafAuthn == null), if: (lur instanceof EpiLur), for: Not (int i=0; (lur = elur.get(i))!=null;++i)\r
275          */\r
276         @Test\r
277         public void test_method_setup_2_branch_16()\r
278         {\r
279                 System.out.println("Now Testing Method:setup Branch:16");\r
280 \r
281                 \r
282         }\r
283 \r
284         /*\r
285          * Testing Conditon(s): if: (aafAuthn == null), else: Not (lur instanceof EpiLur), if: (lur instanceof AbsAAFLur)\r
286          */\r
287         @Test\r
288         public void test_method_setup_2_branch_17()\r
289         {\r
290                 System.out.println("Now Testing Method:setup Branch:17");\r
291                 \r
292         \r
293                 \r
294         }\r
295 \r
296         /*\r
297          * Testing Conditon(s): if: (aafAuthn == null), else: Not (lur instanceof EpiLur), else: Not (lur instanceof AbsAAFLur)\r
298          */\r
299         @Test\r
300         public void test_method_setup_2_branch_18()\r
301         {\r
302                 System.out.println("Now Testing Method:setup Branch:18");\r
303                 \r
304         \r
305                 \r
306         }\r
307 \r
308         /*\r
309          * Testing Conditon(s): if: (aafAuthn == null), if: (aafAuthn==null)\r
310          */\r
311         @Test\r
312         public void test_method_setup_2_branch_19()\r
313         {\r
314                 System.out.println("Now Testing Method:setup Branch:19");\r
315                 \r
316         \r
317                 \r
318         }\r
319 \r
320         /*\r
321          * Testing Conditon(s): if: (aafAuthn == null), else: Not (aafAuthn==null)\r
322          */\r
323         @Test\r
324         public void test_method_setup_2_branch_20()\r
325         {\r
326                 System.out.println("Now Testing Method:setup Branch:20");\r
327                 \r
328         \r
329                 \r
330         }\r
331 \r
332         /*\r
333          * Testing Conditon(s): if: (aafAuthn == null), if: (access!=null)\r
334          */\r
335         @Test\r
336         public void test_method_setup_2_branch_21()\r
337         {\r
338                 System.out.println("Now Testing Method:setup Branch:21");\r
339                 \r
340                 \r
341                 \r
342         }\r
343 \r
344         /*\r
345          * Testing Conditon(s): if: (aafAuthn == null), else: Not (access!=null)\r
346          */\r
347         @Test\r
348         public void test_method_setup_2_branch_22()\r
349         {\r
350                 System.out.println("Now Testing Method:setup Branch:22");\r
351                 \r
352         \r
353         }\r
354 \r
355         /*\r
356          * Testing Conditon(s): else: Not (aafAuthn == null)\r
357          */\r
358         @Test\r
359         public void test_method_setup_2_branch_23()\r
360         {\r
361                 System.out.println("Now Testing Method:setup Branch:23");\r
362         \r
363         }\r
364 \r
365         /*\r
366          * Testing Conditon(s): Default\r
367          */\r
368         @Test\r
369         public void test_method_protectedResources_3_branch_0()\r
370         {\r
371                 System.out.println("Now Testing Method:protectedResources Branch:0");\r
372                 \r
373                 \r
374         }\r
375 \r
376         /*\r
377          * Testing Conditon(s): Default\r
378          */\r
379         @Test\r
380         public void test_method_supportedOptions_4_branch_0()\r
381         {\r
382                 System.out.println("Now Testing Method:supportedOptions Branch:0");\r
383                 \r
384         \r
385         }\r
386 \r
387         /*\r
388          * Testing Conditon(s): Default\r
389          */\r
390         @Test\r
391         public void test_method_alterableOptions_5_branch_0()\r
392         {\r
393                 System.out.println("Now Testing Method:alterableOptions Branch:0");\r
394                 \r
395         \r
396                 \r
397         }\r
398 \r
399 }\r