* ============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
*
* 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
*
*
* 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;
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;
NullPointerException nullPointerException = new NullPointerException();
@Test
- public void loginTest()
+ public void loginTest() throws Exception
{
PowerMockito.mockStatic(StringUtils.class);
PowerMockito.mockStatic(EPUserUtils.class);
}
@Test
- public void loginIfUserNullTest()
+ public void loginIfUserNullTest() throws Exception
{
PowerMockito.mockStatic(SystemProperties.class);
UserInfo userInfo = null;
}
@Test
- public void loginIfUserIfAuthIsOIDCTest()
+ public void loginIfUserIfAuthIsOIDCTest() throws Exception
{
PowerMockito.mockStatic(SystemProperties.class);
UserInfo userInfo = null;
}
@Test
- public void loginIfUserIfAuthNotNullTest()
+ public void loginIfUserIfAuthNotNullTest() throws Exception
{
PowerMockito.mockStatic(SystemProperties.class);
UserInfo userInfo = null;
}
@Test
- public void loginIfUserExceptionest()
+ public void loginIfUserExceptionest() throws Exception
{
PowerMockito.mockStatic(SystemProperties.class);
UserInfo userInfo = null;