mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-22 22:50:11 +01:00
introduce api for handling token validation failed exception
This commit is contained in:
committed by
René Pfeuffer
parent
5887c5c268
commit
f2a53644b6
@@ -110,7 +110,7 @@ public class JwtAccessTokenResolverTest {
|
||||
when(validator.validate(Mockito.any(AccessToken.class))).thenReturn(false);
|
||||
|
||||
// expect exception
|
||||
expectedException.expect(AuthenticationException.class);
|
||||
expectedException.expect(TokenValidationFailedException.class);
|
||||
expectedException.expectMessage(Matchers.containsString("token"));
|
||||
|
||||
BearerToken bearer = BearerToken.valueOf(compact);
|
||||
|
||||
Reference in New Issue
Block a user