From 02d017abf7e0cdc0d254c603abdc7df29970850c Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Wed, 10 Feb 2021 13:20:51 -0700 Subject: [PATCH] Adjust Test Assertion - Netty returns a slightly different exception on Windows, so adjusted assertion accordingly. Issue gh-9421 --- .../security/oauth2/jwt/NimbusReactiveJwtDecoderTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oauth2/oauth2-jose/src/test/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoderTests.java b/oauth2/oauth2-jose/src/test/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoderTests.java index bdbf96e66e..1e65c7728c 100644 --- a/oauth2/oauth2-jose/src/test/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoderTests.java +++ b/oauth2/oauth2-jose/src/test/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -138,7 +138,7 @@ public class NimbusReactiveJwtDecoderTests { // @formatter:off assertThatIllegalStateException() .isThrownBy(() -> this.decoder.decode(this.messageReadToken).block()) - .withRootCauseInstanceOf(UnknownHostException.class); + .withStackTraceContaining(UnknownHostException.class.getName()); // @formatter:on }