Skip to content

Commit 690b7be

Browse files
committed
fixed: integration testing issue
1 parent dbde8b6 commit 690b7be

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/main/java/com/app/login/security/DomainUserDetailsServiceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public DomainUserDetailsServiceImpl(UserRepository userRepository) {
4242
@Transactional(rollbackFor = Exception.class)
4343
public UserDetails loadUserByUsername(final String login) {
4444
if (login==null){
45-
throw new UsernameNotFoundException("User login is null");
45+
throw new UsernameNotFoundException("User login is null");
4646
}
4747
log.debug("Authenticating {}", login);
4848
String lowercaseLogin = login.toLowerCase(Locale.ENGLISH);

src/main/java/com/app/login/web/rest/UserJWTController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public UserJWTController(TokenProvider tokenProvider, AuthenticationManager auth
4646
}
4747

4848
/**
49-
*
49+
* authorize
5050
* @param loginVM login view model
5151
* @param response response
5252
* @return

src/test/java/com/app/TestBase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected final User createUser() {
2929
user.setCreatedDate(Instant.now());
3030
user.setEmail("[email protected]");
3131
user.setIpAddress("127.0.0.1");
32-
user.setLogin("Peter");
32+
user.setLogin("peter");
3333
user.setActivated(true);
3434
user.setImageUrl("asfa.png");
3535
user.setLangKey("en-us");

src/test/java/com/app/login/service/UserServiceMockitoTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public void SaveUserAccountTest()
187187
userServiceImpl.saveUserAccount(new UserDTO());
188188
}
189189

190-
@Test(expected = NullPointerException.class)
190+
@Test
191191
public void createUserInvalidmanagedUserVM()
192192
{
193193
ManagedUserVM managedUserVM=new ManagedUserVM();

0 commit comments

Comments
 (0)