Improve code coverage for aaf cadi modules
[aaf/cadi.git] / cass / src / test / java / org / onap / aaf / cass / AAFAuthorizerTest.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.cass;\r
24 \r
25 import static org.junit.Assert.*;\r
26 \r
27 import org.junit.Test;\r
28 \r
29 import org.junit.After;\r
30 import org.junit.Before;\r
31 import org.junit.Test;\r
32 import static org.junit.Assert.*;\r
33 \r
34 public class AAFAuthorizerTest\r
35 {\r
36         \r
37 \r
38         @Before\r
39         public void setUp()\r
40         {\r
41                 \r
42         }\r
43 \r
44         @After\r
45         public void tearDown()\r
46         {\r
47                 \r
48         }\r
49 \r
50         /*\r
51          * Testing Conditon(s): if: (user instanceof AAFAuthenticatedUser), if: (aafUser.isLocal())\r
52          */\r
53         @Test\r
54         public void test_method_authorize_0_branch_0()\r
55         {\r
56                 System.out.println("Now Testing Method:authorize Branch:0");\r
57                 \r
58         \r
59                 \r
60         }\r
61 \r
62         /*\r
63          * Testing Conditon(s): if: (user instanceof AAFAuthenticatedUser), else: Not (aafUser.isLocal())\r
64          */\r
65         @Test\r
66         public void test_method_authorize_0_branch_1()\r
67         {\r
68                 System.out.println("Now Testing Method:authorize Branch:1");\r
69                 \r
70                 \r
71         }\r
72 \r
73         /*\r
74          * Testing Conditon(s): else: Not (user instanceof AAFAuthenticatedUser)\r
75          */\r
76         @Test\r
77         public void test_method_authorize_0_branch_2()\r
78         {\r
79                 System.out.println("Now Testing Method:authorize Branch:2");\r
80                 \r
81         \r
82         }\r
83 \r
84         /*\r
85          * Testing Conditon(s): Default\r
86          */\r
87         @Test\r
88         public void test_method_PermHolder_1_branch_0()\r
89         {\r
90                 System.out.println("Now Testing Method:PermHolder Branch:0");\r
91                 \r
92                 \r
93         }\r
94 \r
95         /*\r
96          * Testing Conditon(s): Default\r
97          */\r
98         @Test\r
99         public void test_method_PermHolder_2_branch_0()\r
100         {\r
101                 System.out.println("Now Testing Method:PermHolder Branch:0");\r
102                 \r
103                 \r
104                 \r
105         }\r
106 \r
107         /*\r
108          * Testing Conditon(s): if: (permissions==Permission.NONE)\r
109          */\r
110         @Test\r
111         public void test_method_mutable_3_branch_0()\r
112         {\r
113                 System.out.println("Now Testing Method:mutable Branch:0");\r
114                 \r
115         \r
116                 \r
117         }\r
118 \r
119         /*\r
120          * Testing Conditon(s): else: Not (permissions==Permission.NONE)\r
121          */\r
122         @Test\r
123         public void test_method_mutable_3_branch_1()\r
124         {\r
125                 System.out.println("Now Testing Method:mutable Branch:1");\r
126                 \r
127                 \r
128         }\r
129 \r
130         /*\r
131          * Testing Conditon(s): Default\r
132          */\r
133         @Test\r
134         public void test_method_mutable_4_branch_0()\r
135         {\r
136                 System.out.println("Now Testing Method:mutable Branch:0");\r
137                 \r
138                 \r
139                 \r
140         }\r
141 \r
142         /*\r
143          * Testing Conditon(s): Default\r
144          */\r
145         @Test\r
146         public void test_method_mutable_5_branch_0()\r
147         {\r
148                 System.out.println("Now Testing Method:mutable Branch:0");\r
149                 \r
150                 \r
151                 \r
152         }\r
153 \r
154         /*\r
155          * Testing Conditon(s): Default\r
156          */\r
157         @Test\r
158         public void test_method_getName_6_branch_0()\r
159         {\r
160                 System.out.println("Now Testing Method:getName Branch:0");\r
161                 \r
162                 \r
163                 \r
164         }\r
165 \r
166         /*\r
167          * Testing Conditon(s): Default\r
168          */\r
169         @Test\r
170         public void test_method_exec_7_branch_0()\r
171         {\r
172                 System.out.println("Now Testing Method:exec Branch:0");\r
173                 \r
174                 \r
175                 \r
176         }\r
177 \r
178         /*\r
179          * Testing Conditon(s): Default\r
180          */\r
181         @Test\r
182         public void test_method_getName_8_branch_0()\r
183         {\r
184                 System.out.println("Now Testing Method:getName Branch:0");\r
185                 \r
186                 \r
187                 \r
188         }\r
189 \r
190         /*\r
191          * Testing Conditon(s): Default\r
192          */\r
193         @Test\r
194         public void test_method_exec_9_branch_0()\r
195         {\r
196                 System.out.println("Now Testing Method:exec Branch:0");\r
197                 \r
198                 \r
199                 \r
200         }\r
201 \r
202         /*\r
203          * Testing Conditon(s): Default\r
204          */\r
205         @Test\r
206         public void test_method_getName_10_branch_0()\r
207         {\r
208                 System.out.println("Now Testing Method:getName Branch:0");\r
209                 \r
210                 \r
211                 \r
212         }\r
213 \r
214         /*\r
215          * Testing Conditon(s): Default\r
216          */\r
217         @Test\r
218         public void test_method_exec_11_branch_0()\r
219         {\r
220                 System.out.println("Now Testing Method:exec Branch:0");\r
221                 \r
222         \r
223                 \r
224         }\r
225 \r
226         /*\r
227          * Testing Conditon(s): Default\r
228          */\r
229         @Test\r
230         public void test_method_getName_12_branch_0()\r
231         {\r
232                 System.out.println("Now Testing Method:getName Branch:0");\r
233                 \r
234         \r
235                 \r
236         }\r
237 \r
238         /*\r
239          * Testing Conditon(s): Default\r
240          */\r
241         @Test\r
242         public void test_method_exec_13_branch_0()\r
243         {\r
244                 System.out.println("Now Testing Method:exec Branch:0");\r
245                 \r
246                 \r
247         }\r
248 \r
249         /*\r
250          * Testing Conditon(s): Default\r
251          */\r
252         @Test\r
253         public void test_method_getName_14_branch_0()\r
254         {\r
255                 System.out.println("Now Testing Method:getName Branch:0");\r
256                 \r
257         \r
258                 \r
259         }\r
260 \r
261         /*\r
262          * Testing Conditon(s): Default\r
263          */\r
264         @Test\r
265         public void test_method_exec_15_branch_0()\r
266         {\r
267                 System.out.println("Now Testing Method:exec Branch:0");\r
268         \r
269                 \r
270         }\r
271 \r
272         /*\r
273          * Testing Conditon(s): Default\r
274          */\r
275         @Test\r
276         public void test_method_getName_16_branch_0()\r
277         {\r
278                 System.out.println("Now Testing Method:getName Branch:0");\r
279         \r
280                 \r
281         }\r
282 \r
283         /*\r
284          * Testing Conditon(s): Default\r
285          */\r
286         @Test\r
287         public void test_method_exec_17_branch_0()\r
288         {\r
289                 System.out.println("Now Testing Method:exec Branch:0");\r
290                 \r
291                 \r
292                 \r
293         }\r
294 \r
295         /*\r
296          * Testing Conditon(s): Default\r
297          */\r
298         @Test\r
299         public void test_method_getName_18_branch_0()\r
300         {\r
301                 System.out.println("Now Testing Method:getName Branch:0");\r
302                 \r
303                 //Constructor\r
304                 \r
305         }\r
306 \r
307         /*\r
308          * Testing Conditon(s): Default\r
309          */\r
310         @Test\r
311         public void test_method_exec_19_branch_0()\r
312         {\r
313                 System.out.println("Now Testing Method:exec Branch:0");\r
314                 \r
315         \r
316                 \r
317         }\r
318 \r
319         /*\r
320          * Testing Conditon(s): Default\r
321          */\r
322         @Test\r
323         public void test_method_grant_20_branch_0()\r
324         {\r
325                 System.out.println("Now Testing Method:grant Branch:0");\r
326                 \r
327         \r
328         }\r
329 \r
330         /*\r
331          * Testing Conditon(s): Default\r
332          */\r
333         @Test\r
334         public void test_method_revoke_21_branch_0()\r
335         {\r
336                 System.out.println("Now Testing Method:revoke Branch:0");\r
337                 \r
338                 \r
339                 \r
340         }\r
341 \r
342         /*\r
343          * Testing Conditon(s): Default\r
344          */\r
345         @Test\r
346         public void test_method_list_22_branch_0()\r
347         {\r
348                 System.out.println("Now Testing Method:list Branch:0");\r
349                 \r
350         \r
351                 \r
352         }\r
353 \r
354         /*\r
355          * Testing Conditon(s): Default\r
356          */\r
357         @Test\r
358         public void test_method_revokeAll_23_branch_0()\r
359         {\r
360                 System.out.println("Now Testing Method:revokeAll Branch:0");\r
361                 \r
362                 \r
363                 \r
364         }\r
365 \r
366         /*\r
367          * Testing Conditon(s): Default\r
368          */\r
369         @Test\r
370         public void test_method_revokeAll_24_branch_0()\r
371         {\r
372                 System.out.println("Now Testing Method:revokeAll Branch:0");\r
373                 \r
374                 \r
375                 \r
376         }\r
377 \r
378 }\r