|
@@ -471,15 +471,11 @@ public class ClientRegistrationsTests {
|
|
return new MockResponse().setResponseCode(responseCode);
|
|
return new MockResponse().setResponseCode(responseCode);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- String message = """
|
|
|
|
- Unable to resolve Configuration with the provided Issuer of "%s", errors: [\
|
|
|
|
- 405 Client Error: [no body], \
|
|
|
|
- 400 Client Error: [no body], \
|
|
|
|
- 404 Client Error: [no body]]\
|
|
|
|
- """.formatted(this.issuer);
|
|
|
|
assertThatExceptionOfType(IllegalArgumentException.class)
|
|
assertThatExceptionOfType(IllegalArgumentException.class)
|
|
.isThrownBy(() -> ClientRegistrations.fromIssuerLocation(this.issuer).build())
|
|
.isThrownBy(() -> ClientRegistrations.fromIssuerLocation(this.issuer).build())
|
|
- .withMessage(message);
|
|
|
|
|
|
+ .withMessageContaining("405")
|
|
|
|
+ .withMessageContaining("400")
|
|
|
|
+ .withMessageContaining("404");
|
|
}
|
|
}
|
|
|
|
|
|
private ClientRegistration.Builder registration(String path) throws Exception {
|
|
private ClientRegistration.Builder registration(String path) throws Exception {
|