formatting work

This commit is contained in:
eugenp
2017-01-29 16:06:01 +02:00
parent 034cde6e20
commit 966e53a85b
58 changed files with 932 additions and 1046 deletions
@@ -59,8 +59,8 @@ public class CustomUserDetailsServiceIntegrationTest {
myUserService.removeUserByUsername(USERNAME);
}
}
@Test (expected = BadCredentialsException.class)
@Test(expected = BadCredentialsException.class)
public void givenIncorrectUser_whenAuthenticate_thenBadCredentialsException() {
try {
MyUserDto userDTO = new MyUserDto();
@@ -69,15 +69,13 @@ public class CustomUserDetailsServiceIntegrationTest {
try {
myUserService.registerNewUserAccount(userDTO);
}
catch (Exception exc) {
} catch (Exception exc) {
LOG.log(Level.SEVERE, "Error creating account");
}
}
UsernamePasswordAuthenticationToken auth = new UsernamePasswordAuthenticationToken(USERNAME2, PASSWORD);
Authentication authentication = authenticationProvider.authenticate(auth);
}
finally {
} finally {
myUserService.removeUserByUsername(USERNAME);
}
}