Improve code coverage for aaf cadi modules.
[aaf/cadi.git] / cass / src / test / java / org / onap / aaf / cass / AAFAuthenticatorTest.java
diff --git a/cass/src/test/java/org/onap/aaf/cass/AAFAuthenticatorTest.java b/cass/src/test/java/org/onap/aaf/cass/AAFAuthenticatorTest.java
deleted file mode 100644 (file)
index 6482d06..0000000
+++ /dev/null
@@ -1,292 +0,0 @@
-/*******************************************************************************\r
- * ============LICENSE_START====================================================\r
- * * org.onap.aaf\r
- * * ===========================================================================\r
- * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
- * * ===========================================================================\r
- * * Licensed under the Apache License, Version 2.0 (the "License");\r
- * * you may not use this file except in compliance with the License.\r
- * * You may obtain a copy of the License at\r
- * * \r
- *  *      http://www.apache.org/licenses/LICENSE-2.0\r
- * * \r
- *  * Unless required by applicable law or agreed to in writing, software\r
- * * distributed under the License is distributed on an "AS IS" BASIS,\r
- * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * * See the License for the specific language governing permissions and\r
- * * limitations under the License.\r
- * * ============LICENSE_END====================================================\r
- * *\r
- * * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
- * *\r
- ******************************************************************************/\r
-package org.onap.aaf.cass;\r
-\r
-import static org.junit.Assert.*;\r
-\r
-import org.apache.cassandra.exceptions.AuthenticationException;\r
-import org.junit.Test;\r
-import org.onap.aaf.cadi.aaf.cass.AAFAuthenticator;\r
-import org.junit.After;\r
-import org.junit.Before;\r
-import org.junit.Test;\r
-import static org.junit.Assert.*;\r
-\r
-public class AAFAuthenticatorTest\r
-{\r
-       \r
-\r
-       @Before\r
-       public void setUp()\r
-       {\r
-               \r
-       }\r
-\r
-       @After\r
-       public void tearDown()\r
-       {\r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): Default\r
-        */\r
-       @Test\r
-       public void test_method_requireAuthentication_0_branch_0()\r
-       {\r
-               System.out.println("Now Testing Method:requireAuthentication Branch:0");\r
-               \r
-               //Constructor\r
-               AAFAuthenticator instance = new AAFAuthenticator();\r
-               \r
-               //Get expected result and result\r
-               Object expResult = null;\r
-               Object result = instance.requireAuthentication();\r
-               \r
-               //Check Return value\r
-               assertEquals(expResult, result);\r
-               \r
-               //Check Test Verification Points\r
-               assertEquals(null, instance.requireAuthentication());\r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): if: (username == null)\r
-        */\r
-       @Test\r
-       public void test_method_authenticate_1_branch_0()\r
-       {\r
-               System.out.println("Now Testing Method:authenticate Branch:0");\r
-               \r
-       \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): else: Not (username == null)\r
-        */\r
-       @Test\r
-       public void test_method_authenticate_1_branch_1() throws AuthenticationException\r
-       {\r
-               System.out.println("Now Testing Method:authenticate Branch:1");\r
-               \r
-               //Constructor\r
-               AAFAuthenticator instance = new AAFAuthenticator();\r
-               \r
-               //Get expected result and result\r
-               Object expResult = null;\r
-               Object result = instance.authenticate(null);\r
-               \r
-               //Check Return value\r
-               assertEquals(expResult, result);\r
-               \r
-       \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): if: (password == null)\r
-        */\r
-       @Test\r
-       public void test_method_authenticate_1_branch_2()\r
-       {\r
-               System.out.println("Now Testing Method:authenticate Branch:2");\r
-               \r
-               \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): else: Not (password == null), if: (password.startsWith("bsf:"))\r
-        */\r
-       @Test\r
-       public void test_method_authenticate_1_branch_3()\r
-       {\r
-               System.out.println("Now Testing Method:authenticate Branch:3");\r
-               \r
-               \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): else: Not (password == null), else: Not (password.startsWith("bsf:")), if: (password.startsWith("enc:???"))\r
-        */\r
-       @Test\r
-       public void test_method_authenticate_1_branch_4()\r
-       {\r
-               System.out.println("Now Testing Method:authenticate Branch:4");\r
-       \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): else: Not (password == null), else: Not (password.startsWith("bsf:")), else: Not (password.startsWith("enc:???"))\r
-        */\r
-       @Test\r
-       public void test_method_authenticate_1_branch_5()\r
-       {\r
-               System.out.println("Now Testing Method:authenticate Branch:5");\r
-               \r
-               \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): if: (localLur!=null), if: (localLur.validate(fullName, Type.PASSWORD, password.getBytes()))\r
-        */\r
-       @Test\r
-       public void test_method_authenticate_1_branch_6()\r
-       {\r
-               System.out.println("Now Testing Method:authenticate Branch:6");\r
-               \r
-               \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): if: (localLur!=null), else: Not (localLur.validate(fullName, Type.PASSWORD, password.getBytes()))\r
-        */\r
-       @Test\r
-       public void test_method_authenticate_1_branch_7()\r
-       {\r
-               System.out.println("Now Testing Method:authenticate Branch:7");\r
-               \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): else: Not (localLur!=null)\r
-        */\r
-       @Test\r
-       public void test_method_authenticate_1_branch_8()\r
-       {\r
-               System.out.println("Now Testing Method:authenticate Branch:8");\r
-               \r
-               \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): if: (aafResponse != null)\r
-        */\r
-       @Test\r
-       public void test_method_authenticate_1_branch_9()\r
-       {\r
-               System.out.println("Now Testing Method:authenticate Branch:9");\r
-               \r
-       \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): else: Not (aafResponse != null)\r
-        */\r
-       @Test\r
-       public void test_method_authenticate_1_branch_10()\r
-       {\r
-               System.out.println("Now Testing Method:authenticate Branch:10");\r
-               \r
-               \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): Default\r
-        */\r
-       @Test\r
-       public void test_method_create_2_branch_0()\r
-       {\r
-               System.out.println("Now Testing Method:create Branch:0");\r
-               \r
-               \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): Default\r
-        */\r
-       @Test\r
-       public void test_method_alter_3_branch_0()\r
-       {\r
-               System.out.println("Now Testing Method:alter Branch:0");\r
-               \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): Default\r
-        */\r
-       @Test\r
-       public void test_method_drop_4_branch_0()\r
-       {\r
-               System.out.println("Now Testing Method:drop Branch:0");\r
-               \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): Default\r
-        */\r
-       @Test\r
-       public void test_method_evaluateResponse_5_branch_0()\r
-       {\r
-               System.out.println("Now Testing Method:evaluateResponse Branch:0");\r
-               \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): Default\r
-        */\r
-       @Test\r
-       public void test_method_isComplete_6_branch_0()\r
-       {\r
-               System.out.println("Now Testing Method:isComplete Branch:0");\r
-               \r
-       \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): Default\r
-        */\r
-       @Test\r
-       public void test_method_getAuthenticatedUser_7_branch_0()\r
-       {\r
-               System.out.println("Now Testing Method:getAuthenticatedUser Branch:0");\r
-               \r
-               \r
-               \r
-       }\r
-\r
-       /*\r
-        * Testing Conditon(s): Default\r
-        */\r
-       @Test\r
-       public void test_method_newAuthenticator_8_branch_0()\r
-       {\r
-               System.out.println("Now Testing Method:newAuthenticator Branch:0");\r
-               \r
-               \r
-               \r
-       }\r
-\r
-}\r