Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit f9e3dd0e authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

fix unit test

parent a89d90a8
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ public class SMPAuthenticationProviderTest {
doReturn(5).when(mockConfigurationService).getAccessTokenLoginMaxAttempts();
// when
BadCredentialsException error = assertThrows(BadCredentialsException.class,
() -> testInstance.loginAttemptForAccessTokenFailed(user,false,starTime));
() -> testInstance.loginAttemptForAccessTokenFailed(user,true,starTime));
assertEquals(SMPAuthenticationProvider.SUSPENDED_CREDENTIALS_EXCEPTION, error);
assertEquals(starFailCount+1,(int)user.getSequentialTokenLoginFailureCount());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment