X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-BE-os%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fportalapp%2Fportal%2Fauthentication%2FOpenIdConnectLoginStrategyTest.java;fp=ecomp-portal-BE-os%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenecomp%2Fportalapp%2Fportal%2Fauthentication%2FOpenIdConnectLoginStrategyTest.java;h=58e596ae936dae29a2a356cc0fd3173cd856e373;hb=21a8761f684745bb300e075c7e98ad897ace9eed;hp=2d0f795aab139bf5762caacab09c28e33ff1f1dd;hpb=3af8af1310d5a27cb58be29505573f0bbdc1717c;p=portal.git diff --git a/ecomp-portal-BE-os/src/test/java/org/openecomp/portalapp/portal/authentication/OpenIdConnectLoginStrategyTest.java b/ecomp-portal-BE-os/src/test/java/org/onap/portalapp/portal/authentication/OpenIdConnectLoginStrategyTest.java similarity index 86% rename from ecomp-portal-BE-os/src/test/java/org/openecomp/portalapp/portal/authentication/OpenIdConnectLoginStrategyTest.java rename to ecomp-portal-BE-os/src/test/java/org/onap/portalapp/portal/authentication/OpenIdConnectLoginStrategyTest.java index 2d0f795a..58e596ae 100644 --- a/ecomp-portal-BE-os/src/test/java/org/openecomp/portalapp/portal/authentication/OpenIdConnectLoginStrategyTest.java +++ b/ecomp-portal-BE-os/src/test/java/org/onap/portalapp/portal/authentication/OpenIdConnectLoginStrategyTest.java @@ -2,11 +2,11 @@ * ============LICENSE_START========================================== * ONAP Portal * =================================================================== - * Copyright © 2017 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * =================================================================== * * Unless otherwise specified, all software contained herein is licensed - * under the Apache License, Version 2.0 (the “License”); + * under the Apache License, Version 2.0 (the "License"); * you may not use this software except in compliance with the License. * You may obtain a copy of the License at * @@ -19,7 +19,7 @@ * limitations under the License. * * Unless otherwise specified, all documentation contained herein is licensed - * under the Creative Commons License, Attribution 4.0 Intl. (the “License”); + * under the Creative Commons License, Attribution 4.0 Intl. (the "License"); * you may not use this documentation except in compliance with the License. * You may obtain a copy of the License at * @@ -35,15 +35,20 @@ * * ECOMP is a trademark and service mark of AT&T Intellectual Property. */ -package org.openecomp.portalapp.portal.authentication; +package org.onap.portalapp.portal.authentication; import static org.junit.Assert.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.openecomp.portalsdk.core.onboarding.exception.PortalAPIException; -import org.openecomp.portalsdk.core.util.SystemProperties; +import org.onap.portalapp.authentication.OpenIdConnectLoginStrategy; +import org.onap.portalapp.portal.framework.MockitoTestSuite; +import org.onap.portalapp.portal.utils.EPSystemProperties; +import org.onap.portalapp.util.EPUserUtils; +import org.onap.portalapp.util.SessionCookieUtil; +import org.onap.portalsdk.core.onboarding.exception.PortalAPIException; +import org.onap.portalsdk.core.util.SystemProperties; import org.junit.Before; import org.junit.Test; @@ -53,11 +58,6 @@ import org.mitre.openid.connect.model.UserInfo; import org.mockito.InjectMocks; import org.mockito.Mockito; import org.mockito.MockitoAnnotations; -import org.openecomp.portalapp.authentication.OpenIdConnectLoginStrategy; -import org.openecomp.portalapp.portal.framework.MockitoTestSuite; -import org.openecomp.portalapp.portal.utils.EPSystemProperties; -import org.openecomp.portalapp.util.EPUserUtils; -import org.openecomp.portalapp.util.SessionCookieUtil; import org.powermock.api.mockito.PowerMockito; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; @@ -83,7 +83,7 @@ public class OpenIdConnectLoginStrategyTest { NullPointerException nullPointerException = new NullPointerException(); @Test - public void loginTest() + public void loginTest() throws Exception { PowerMockito.mockStatic(StringUtils.class); PowerMockito.mockStatic(EPUserUtils.class); @@ -99,7 +99,7 @@ public class OpenIdConnectLoginStrategyTest { } @Test - public void loginIfUserNullTest() + public void loginIfUserNullTest() throws Exception { PowerMockito.mockStatic(SystemProperties.class); UserInfo userInfo = null; @@ -109,7 +109,7 @@ public class OpenIdConnectLoginStrategyTest { } @Test - public void loginIfUserIfAuthIsOIDCTest() + public void loginIfUserIfAuthIsOIDCTest() throws Exception { PowerMockito.mockStatic(SystemProperties.class); UserInfo userInfo = null; @@ -120,7 +120,7 @@ public class OpenIdConnectLoginStrategyTest { } @Test - public void loginIfUserIfAuthNotNullTest() + public void loginIfUserIfAuthNotNullTest() throws Exception { PowerMockito.mockStatic(SystemProperties.class); UserInfo userInfo = null; @@ -131,7 +131,7 @@ public class OpenIdConnectLoginStrategyTest { } @Test - public void loginIfUserExceptionest() + public void loginIfUserExceptionest() throws Exception { PowerMockito.mockStatic(SystemProperties.class); UserInfo userInfo = null;