Fixed health check issue
[portal.git] / portal-BE / src / test / java / org / onap / portal / controller / UserControllerTest.java
index e3f1f7b..8e5b1aa 100644 (file)
@@ -46,10 +46,9 @@ import org.junit.runner.RunWith;
 import org.onap.portal.domain.db.fn.FnUser;
 import org.onap.portal.domain.dto.PortalRestResponse;
 import org.onap.portal.domain.dto.PortalRestStatusEnum;
-import org.onap.portal.domain.dto.ProfileDetail;
-import org.onap.portal.service.fn.FnUserService;
+import org.onap.portal.domain.dto.transport.ProfileDetail;
+import org.onap.portal.service.user.FnUserService;
 import org.onap.portalsdk.core.onboarding.exception.CipherUtilException;
-import org.onap.portalsdk.core.onboarding.util.CipherUtil;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
@@ -61,14 +60,14 @@ import org.springframework.test.context.junit4.SpringRunner;
 @TestPropertySource(locations = "classpath:test.properties")
 class UserControllerTest {
 
-       private UsernamePasswordAuthenticationToken principal = new UsernamePasswordAuthenticationToken("demo",
-               "XZa6pS1vC0qKXWtn9wcZWdLx61L0=");
+       private final UsernamePasswordAuthenticationToken principal = new UsernamePasswordAuthenticationToken("demo",
+               "demo123");
 
        private final FnUserService userService;
        private final UserController userController;
 
        @Autowired
-       UserControllerTest(final FnUserService userService, final UserController userController) {
+       UserControllerTest(FnUserService userService, UserController userController) {
               this.userService = userService;
               this.userController = userController;
        }
@@ -141,4 +140,4 @@ class UserControllerTest {
               assertEquals(expected, actual);
               assertNotEquals(oldPassword, newPassword);
        }
-}
\ No newline at end of file
+}