summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-os/src/test/java/org
diff options
context:
space:
mode:
authorSudarshan Kumar <sudarshan.kumar@att.com>2020-02-18 16:16:26 +0530
committerSudarshan Kumar <sudarshan.kumar@att.com>2020-02-18 21:25:25 +0530
commit8e83c25788017acd56271a72286f7dcbc974e76d (patch)
treed7b1e52bc20367bbb38ae69483c33e71f341fd4b /ecomp-portal-BE-os/src/test/java/org
parent6e50276a42ab82cfe34ced9cf97e545283f37f2a (diff)
Changes made to upgrade pom version
Upgraded pom version Issue-ID: PORTAL-769 Change-Id: I65ae68acda464531d699dcb459d328de19a3c7c7 Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
Diffstat (limited to 'ecomp-portal-BE-os/src/test/java/org')
-rw-r--r--ecomp-portal-BE-os/src/test/java/org/onap/portalapp/utils/SessionCookieUtilTest.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/ecomp-portal-BE-os/src/test/java/org/onap/portalapp/utils/SessionCookieUtilTest.java b/ecomp-portal-BE-os/src/test/java/org/onap/portalapp/utils/SessionCookieUtilTest.java
index 56fc951d..2368da9e 100644
--- a/ecomp-portal-BE-os/src/test/java/org/onap/portalapp/utils/SessionCookieUtilTest.java
+++ b/ecomp-portal-BE-os/src/test/java/org/onap/portalapp/utils/SessionCookieUtilTest.java
@@ -48,17 +48,21 @@ import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
+import org.onap.music.main.CipherUtil;
import org.onap.portalapp.portal.domain.EcompAuditLog;
import org.onap.portalapp.portal.framework.MockitoTestSuite;
import org.onap.portalapp.portal.utils.EPCommonSystemProperties;
import org.onap.portalapp.portal.utils.EcompPortalUtils;
import org.onap.portalapp.util.SessionCookieUtil;
+import org.onap.portalsdk.core.onboarding.exception.CipherUtilException;
+import org.onap.portalsdk.core.onboarding.util.PortalApiProperties;
import org.onap.portalsdk.core.util.SystemProperties;
+import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
@RunWith(PowerMockRunner.class)
-@PrepareForTest({EcompPortalUtils.class, EPCommonSystemProperties.class, EcompAuditLog.class, SystemProperties.class})
+@PrepareForTest({EcompPortalUtils.class, EPCommonSystemProperties.class, EcompAuditLog.class, SystemProperties.class, CipherUtil.class, PortalApiProperties.class})
public class SessionCookieUtilTest {
@@ -72,8 +76,10 @@ public class SessionCookieUtilTest {
@Mock
Cookie cookie;
@Before
- public void setup() {
+ public void setup() throws CipherUtilException {
MockitoAnnotations.initMocks(this);
+ PowerMockito.mockStatic(CipherUtil.class);
+ Mockito.when(CipherUtil.encryptPKC(Mockito.anyString())).thenReturn("Test");
}
@Test