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;
@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;
}
assertEquals(expected, actual);
assertNotEquals(oldPassword, newPassword);
}
-}
\ No newline at end of file
+}