diff options
author | sg481n <sg481n@att.com> | 2017-10-02 13:40:28 +0000 |
---|---|---|
committer | sg481n <sg481n@att.com> | 2017-10-02 14:18:34 +0000 |
commit | 538dc09c0210c9458565b4480af009a3fbb99f6d (patch) | |
tree | 2adeb385baed2ca3bf9681cb1b315be012e940d9 /cass/src/test/java/org | |
parent | 3d80a8dd2b8aa5c1e59eafe24fcf7cb9149d5fdc (diff) |
Improve code coverage for aaf cadi modules.
Issie-ID: AAF-79
Change-Id: I57c757a12997a81137a71c2ce131fb3ef934ec1f
Signed-off-by: sg481n <sg481n@att.com>
Diffstat (limited to 'cass/src/test/java/org')
-rw-r--r-- | cass/src/test/java/org/onap/aaf/cass/AAFAuthenticatorTest.java | 292 | ||||
-rw-r--r-- | cass/src/test/java/org/onap/aaf/cass/JU_AAFAuthenticatedUserTest.java (renamed from cass/src/test/java/org/onap/aaf/cass/AAFAuthenticatedUserTest.java) | 2 | ||||
-rw-r--r-- | cass/src/test/java/org/onap/aaf/cass/JU_AAFAuthorizerTest.java (renamed from cass/src/test/java/org/onap/aaf/cass/AAFAuthorizerTest.java) | 2 | ||||
-rw-r--r-- | cass/src/test/java/org/onap/aaf/cass/JU_AAFBaseTest.java (renamed from cass/src/test/java/org/onap/aaf/cass/AAFBaseTest.java) | 2 |
4 files changed, 3 insertions, 295 deletions
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 index 6482d06..0000000 --- a/cass/src/test/java/org/onap/aaf/cass/AAFAuthenticatorTest.java +++ /dev/null @@ -1,292 +0,0 @@ -/*******************************************************************************
- * ============LICENSE_START====================================================
- * * org.onap.aaf
- * * ===========================================================================
- * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * * ===========================================================================
- * * Licensed under the Apache License, Version 2.0 (the "License");
- * * you may not use this file except in compliance with the License.
- * * You may obtain a copy of the License at
- * *
- * * http://www.apache.org/licenses/LICENSE-2.0
- * *
- * * Unless required by applicable law or agreed to in writing, software
- * * distributed under the License is distributed on an "AS IS" BASIS,
- * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * * See the License for the specific language governing permissions and
- * * limitations under the License.
- * * ============LICENSE_END====================================================
- * *
- * * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- * *
- ******************************************************************************/
-package org.onap.aaf.cass;
-
-import static org.junit.Assert.*;
-
-import org.apache.cassandra.exceptions.AuthenticationException;
-import org.junit.Test;
-import org.onap.aaf.cadi.aaf.cass.AAFAuthenticator;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-
-public class AAFAuthenticatorTest
-{
-
-
- @Before
- public void setUp()
- {
-
- }
-
- @After
- public void tearDown()
- {
-
- }
-
- /*
- * Testing Conditon(s): Default
- */
- @Test
- public void test_method_requireAuthentication_0_branch_0()
- {
- System.out.println("Now Testing Method:requireAuthentication Branch:0");
-
- //Constructor
- AAFAuthenticator instance = new AAFAuthenticator();
-
- //Get expected result and result
- Object expResult = null;
- Object result = instance.requireAuthentication();
-
- //Check Return value
- assertEquals(expResult, result);
-
- //Check Test Verification Points
- assertEquals(null, instance.requireAuthentication());
-
- }
-
- /*
- * Testing Conditon(s): if: (username == null)
- */
- @Test
- public void test_method_authenticate_1_branch_0()
- {
- System.out.println("Now Testing Method:authenticate Branch:0");
-
-
-
- }
-
- /*
- * Testing Conditon(s): else: Not (username == null)
- */
- @Test
- public void test_method_authenticate_1_branch_1() throws AuthenticationException
- {
- System.out.println("Now Testing Method:authenticate Branch:1");
-
- //Constructor
- AAFAuthenticator instance = new AAFAuthenticator();
-
- //Get expected result and result
- Object expResult = null;
- Object result = instance.authenticate(null);
-
- //Check Return value
- assertEquals(expResult, result);
-
-
-
- }
-
- /*
- * Testing Conditon(s): if: (password == null)
- */
- @Test
- public void test_method_authenticate_1_branch_2()
- {
- System.out.println("Now Testing Method:authenticate Branch:2");
-
-
-
- }
-
- /*
- * Testing Conditon(s): else: Not (password == null), if: (password.startsWith("bsf:"))
- */
- @Test
- public void test_method_authenticate_1_branch_3()
- {
- System.out.println("Now Testing Method:authenticate Branch:3");
-
-
-
- }
-
- /*
- * Testing Conditon(s): else: Not (password == null), else: Not (password.startsWith("bsf:")), if: (password.startsWith("enc:???"))
- */
- @Test
- public void test_method_authenticate_1_branch_4()
- {
- System.out.println("Now Testing Method:authenticate Branch:4");
-
- }
-
- /*
- * Testing Conditon(s): else: Not (password == null), else: Not (password.startsWith("bsf:")), else: Not (password.startsWith("enc:???"))
- */
- @Test
- public void test_method_authenticate_1_branch_5()
- {
- System.out.println("Now Testing Method:authenticate Branch:5");
-
-
-
- }
-
- /*
- * Testing Conditon(s): if: (localLur!=null), if: (localLur.validate(fullName, Type.PASSWORD, password.getBytes()))
- */
- @Test
- public void test_method_authenticate_1_branch_6()
- {
- System.out.println("Now Testing Method:authenticate Branch:6");
-
-
-
- }
-
- /*
- * Testing Conditon(s): if: (localLur!=null), else: Not (localLur.validate(fullName, Type.PASSWORD, password.getBytes()))
- */
- @Test
- public void test_method_authenticate_1_branch_7()
- {
- System.out.println("Now Testing Method:authenticate Branch:7");
-
-
- }
-
- /*
- * Testing Conditon(s): else: Not (localLur!=null)
- */
- @Test
- public void test_method_authenticate_1_branch_8()
- {
- System.out.println("Now Testing Method:authenticate Branch:8");
-
-
-
- }
-
- /*
- * Testing Conditon(s): if: (aafResponse != null)
- */
- @Test
- public void test_method_authenticate_1_branch_9()
- {
- System.out.println("Now Testing Method:authenticate Branch:9");
-
-
- }
-
- /*
- * Testing Conditon(s): else: Not (aafResponse != null)
- */
- @Test
- public void test_method_authenticate_1_branch_10()
- {
- System.out.println("Now Testing Method:authenticate Branch:10");
-
-
-
- }
-
- /*
- * Testing Conditon(s): Default
- */
- @Test
- public void test_method_create_2_branch_0()
- {
- System.out.println("Now Testing Method:create Branch:0");
-
-
-
- }
-
- /*
- * Testing Conditon(s): Default
- */
- @Test
- public void test_method_alter_3_branch_0()
- {
- System.out.println("Now Testing Method:alter Branch:0");
-
-
- }
-
- /*
- * Testing Conditon(s): Default
- */
- @Test
- public void test_method_drop_4_branch_0()
- {
- System.out.println("Now Testing Method:drop Branch:0");
-
-
- }
-
- /*
- * Testing Conditon(s): Default
- */
- @Test
- public void test_method_evaluateResponse_5_branch_0()
- {
- System.out.println("Now Testing Method:evaluateResponse Branch:0");
-
-
- }
-
- /*
- * Testing Conditon(s): Default
- */
- @Test
- public void test_method_isComplete_6_branch_0()
- {
- System.out.println("Now Testing Method:isComplete Branch:0");
-
-
- }
-
- /*
- * Testing Conditon(s): Default
- */
- @Test
- public void test_method_getAuthenticatedUser_7_branch_0()
- {
- System.out.println("Now Testing Method:getAuthenticatedUser Branch:0");
-
-
-
- }
-
- /*
- * Testing Conditon(s): Default
- */
- @Test
- public void test_method_newAuthenticator_8_branch_0()
- {
- System.out.println("Now Testing Method:newAuthenticator Branch:0");
-
-
-
- }
-
-}
diff --git a/cass/src/test/java/org/onap/aaf/cass/AAFAuthenticatedUserTest.java b/cass/src/test/java/org/onap/aaf/cass/JU_AAFAuthenticatedUserTest.java index dbc923a..50e35df 100644 --- a/cass/src/test/java/org/onap/aaf/cass/AAFAuthenticatedUserTest.java +++ b/cass/src/test/java/org/onap/aaf/cass/JU_AAFAuthenticatedUserTest.java @@ -31,7 +31,7 @@ import org.junit.Before; import org.junit.Test;
import static org.junit.Assert.*;
-public class AAFAuthenticatedUserTest
+public class JU_AAFAuthenticatedUserTest
{
diff --git a/cass/src/test/java/org/onap/aaf/cass/AAFAuthorizerTest.java b/cass/src/test/java/org/onap/aaf/cass/JU_AAFAuthorizerTest.java index 1671f7e..4e2f0a3 100644 --- a/cass/src/test/java/org/onap/aaf/cass/AAFAuthorizerTest.java +++ b/cass/src/test/java/org/onap/aaf/cass/JU_AAFAuthorizerTest.java @@ -31,7 +31,7 @@ import org.junit.Before; import org.junit.Test;
import static org.junit.Assert.*;
-public class AAFAuthorizerTest
+public class JU_AAFAuthorizerTest
{
diff --git a/cass/src/test/java/org/onap/aaf/cass/AAFBaseTest.java b/cass/src/test/java/org/onap/aaf/cass/JU_AAFBaseTest.java index 52f005b..172a3dc 100644 --- a/cass/src/test/java/org/onap/aaf/cass/AAFBaseTest.java +++ b/cass/src/test/java/org/onap/aaf/cass/JU_AAFBaseTest.java @@ -29,7 +29,7 @@ import org.onap.aaf.cadi.aaf.cass.AAFBase; import static org.junit.Assert.*;
-public class AAFBaseTest
+public class JU_AAFBaseTest
{
|