Add getJobs and adapt getProducers
[portal/nonrtric-controlpanel.git] / webapp-backend / src / test / java / org / oransc / portal / nonrtric / controlpanel / portalapi / PortalAuthManagerTest.java
index 55637d2..382198b 100644 (file)
@@ -32,8 +32,6 @@ import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.extension.ExtendWith;
 import org.onap.portalsdk.core.onboarding.util.PortalApiConstants;
 import org.oransc.portal.nonrtric.controlpanel.ControlPanelUserManager;
-import org.oransc.portal.nonrtric.controlpanel.portalapi.PortalAuthManager;
-import org.oransc.portal.nonrtric.controlpanel.portalapi.PortalAuthenticationFilter;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Value;
@@ -41,13 +39,11 @@ import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
 import org.springframework.mock.web.MockHttpServletRequest;
 import org.springframework.mock.web.MockHttpServletResponse;
-import org.springframework.test.context.ActiveProfiles;
 import org.springframework.test.context.junit.jupiter.SpringExtension;
 
 @ExtendWith(SpringExtension.class)
 @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
-@ActiveProfiles("test")
-public class PortalAuthManagerTest {
+class PortalAuthManagerTest {
 
     @Value("${portalapi.decryptor}")
     private String decryptor;
@@ -55,7 +51,7 @@ public class PortalAuthManagerTest {
     private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
 
     @Test
-    public void testPortalStuff() throws ClassNotFoundException, InstantiationException, IllegalAccessException,
+    void testPortalStuff() throws ClassNotFoundException, InstantiationException, IllegalAccessException,
         InvocationTargetException, NoSuchMethodException, IOException, ServletException {
 
         PortalAuthManager m = new PortalAuthManager("app", "user", "secret", decryptor, "cookie");