Skip to content

Commit 02d017a

Browse files
committed
Adjust Test Assertion
- Netty returns a slightly different exception on Windows, so adjusted assertion accordingly. Issue gh-9421
1 parent ccb3b02 commit 02d017a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2/oauth2-jose/src/test/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoderTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -138,7 +138,7 @@ public void decodeWhenInvalidUrl() {
138138
// @formatter:off
139139
assertThatIllegalStateException()
140140
.isThrownBy(() -> this.decoder.decode(this.messageReadToken).block())
141-
.withRootCauseInstanceOf(UnknownHostException.class);
141+
.withStackTraceContaining(UnknownHostException.class.getName());
142142
// @formatter:on
143143
}
144144

0 commit comments

Comments
 (0)