mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-04-25 00:25:01 +00:00
Polish NimbusReactiveJwtDecoderTests
Issue: gh-5650
This commit is contained in:
parent
8eedb3919e
commit
a32d19ec7d
@ -172,7 +172,7 @@ public class NimbusReactiveJwtDecoderTests {
|
|||||||
OAuth2TokenValidatorResult result = OAuth2TokenValidatorResult.failure(error);
|
OAuth2TokenValidatorResult result = OAuth2TokenValidatorResult.failure(error);
|
||||||
when(jwtValidator.validate(any(Jwt.class))).thenReturn(result);
|
when(jwtValidator.validate(any(Jwt.class))).thenReturn(result);
|
||||||
|
|
||||||
assertThatCode(() -> this.decoder.decode(messageReadToken).block())
|
assertThatCode(() -> this.decoder.decode(this.messageReadToken).block())
|
||||||
.isInstanceOf(JwtException.class)
|
.isInstanceOf(JwtException.class)
|
||||||
.hasMessageContaining("mock-description");
|
.hasMessageContaining("mock-description");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user