1 /*******************************************************************************
\r
2 * ============LICENSE_START====================================================
\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
11 * * http://www.apache.org/licenses/LICENSE-2.0
\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
20 * * ECOMP is a trademark and service mark of AT&T Intellectual Property.
\r
22 ******************************************************************************/
\r
23 package org.onap.aaf.cass;
\r
25 import static org.junit.Assert.*;
\r
27 import org.junit.Test;
\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
34 public class JU_AAFAuthorizerTest
\r
45 public void tearDown()
\r
51 * Testing Conditon(s): if: (user instanceof AAFAuthenticatedUser), if: (aafUser.isLocal())
\r
54 public void test_method_authorize_0_branch_0()
\r
56 System.out.println("Now Testing Method:authorize Branch:0");
\r
63 * Testing Conditon(s): if: (user instanceof AAFAuthenticatedUser), else: Not (aafUser.isLocal())
\r
66 public void test_method_authorize_0_branch_1()
\r
68 System.out.println("Now Testing Method:authorize Branch:1");
\r
74 * Testing Conditon(s): else: Not (user instanceof AAFAuthenticatedUser)
\r
77 public void test_method_authorize_0_branch_2()
\r
79 System.out.println("Now Testing Method:authorize Branch:2");
\r
85 * Testing Conditon(s): Default
\r
88 public void test_method_PermHolder_1_branch_0()
\r
90 System.out.println("Now Testing Method:PermHolder Branch:0");
\r
96 * Testing Conditon(s): Default
\r
99 public void test_method_PermHolder_2_branch_0()
\r
101 System.out.println("Now Testing Method:PermHolder Branch:0");
\r
108 * Testing Conditon(s): if: (permissions==Permission.NONE)
\r
111 public void test_method_mutable_3_branch_0()
\r
113 System.out.println("Now Testing Method:mutable Branch:0");
\r
120 * Testing Conditon(s): else: Not (permissions==Permission.NONE)
\r
123 public void test_method_mutable_3_branch_1()
\r
125 System.out.println("Now Testing Method:mutable Branch:1");
\r
131 * Testing Conditon(s): Default
\r
134 public void test_method_mutable_4_branch_0()
\r
136 System.out.println("Now Testing Method:mutable Branch:0");
\r
143 * Testing Conditon(s): Default
\r
146 public void test_method_mutable_5_branch_0()
\r
148 System.out.println("Now Testing Method:mutable Branch:0");
\r
155 * Testing Conditon(s): Default
\r
158 public void test_method_getName_6_branch_0()
\r
160 System.out.println("Now Testing Method:getName Branch:0");
\r
167 * Testing Conditon(s): Default
\r
170 public void test_method_exec_7_branch_0()
\r
172 System.out.println("Now Testing Method:exec Branch:0");
\r
179 * Testing Conditon(s): Default
\r
182 public void test_method_getName_8_branch_0()
\r
184 System.out.println("Now Testing Method:getName Branch:0");
\r
191 * Testing Conditon(s): Default
\r
194 public void test_method_exec_9_branch_0()
\r
196 System.out.println("Now Testing Method:exec Branch:0");
\r
203 * Testing Conditon(s): Default
\r
206 public void test_method_getName_10_branch_0()
\r
208 System.out.println("Now Testing Method:getName Branch:0");
\r
215 * Testing Conditon(s): Default
\r
218 public void test_method_exec_11_branch_0()
\r
220 System.out.println("Now Testing Method:exec Branch:0");
\r
227 * Testing Conditon(s): Default
\r
230 public void test_method_getName_12_branch_0()
\r
232 System.out.println("Now Testing Method:getName Branch:0");
\r
239 * Testing Conditon(s): Default
\r
242 public void test_method_exec_13_branch_0()
\r
244 System.out.println("Now Testing Method:exec Branch:0");
\r
250 * Testing Conditon(s): Default
\r
253 public void test_method_getName_14_branch_0()
\r
255 System.out.println("Now Testing Method:getName Branch:0");
\r
262 * Testing Conditon(s): Default
\r
265 public void test_method_exec_15_branch_0()
\r
267 System.out.println("Now Testing Method:exec Branch:0");
\r
273 * Testing Conditon(s): Default
\r
276 public void test_method_getName_16_branch_0()
\r
278 System.out.println("Now Testing Method:getName Branch:0");
\r
284 * Testing Conditon(s): Default
\r
287 public void test_method_exec_17_branch_0()
\r
289 System.out.println("Now Testing Method:exec Branch:0");
\r
296 * Testing Conditon(s): Default
\r
299 public void test_method_getName_18_branch_0()
\r
301 System.out.println("Now Testing Method:getName Branch:0");
\r
308 * Testing Conditon(s): Default
\r
311 public void test_method_exec_19_branch_0()
\r
313 System.out.println("Now Testing Method:exec Branch:0");
\r
320 * Testing Conditon(s): Default
\r
323 public void test_method_grant_20_branch_0()
\r
325 System.out.println("Now Testing Method:grant Branch:0");
\r
331 * Testing Conditon(s): Default
\r
334 public void test_method_revoke_21_branch_0()
\r
336 System.out.println("Now Testing Method:revoke Branch:0");
\r
343 * Testing Conditon(s): Default
\r
346 public void test_method_list_22_branch_0()
\r
348 System.out.println("Now Testing Method:list Branch:0");
\r
355 * Testing Conditon(s): Default
\r
358 public void test_method_revokeAll_23_branch_0()
\r
360 System.out.println("Now Testing Method:revokeAll Branch:0");
\r
367 * Testing Conditon(s): Default
\r
370 public void test_method_revokeAll_24_branch_0()
\r
372 System.out.println("Now Testing Method:revokeAll Branch:0");
\r