Upgrade to AssertJ 3.16
This commit is contained in:
@@ -74,8 +74,8 @@ public class DefaultResponseErrorHandlerTests {
|
||||
|
||||
assertThatExceptionOfType(HttpClientErrorException.class)
|
||||
.isThrownBy(() -> handler.handleError(response))
|
||||
.satisfies(ex -> assertThat(ex.getResponseHeaders()).isSameAs(headers))
|
||||
.satisfies(ex -> assertThat(ex.getMessage()).isEqualTo("404 Not Found: [Hello World]"));
|
||||
.withMessage("404 Not Found: [Hello World]")
|
||||
.satisfies(ex -> assertThat(ex.getResponseHeaders()).isSameAs(headers));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -92,8 +92,7 @@ public class DefaultResponseErrorHandlerTests {
|
||||
|
||||
assertThatExceptionOfType(HttpClientErrorException.class)
|
||||
.isThrownBy(() -> handler.handleError(response))
|
||||
.satisfies(ex -> assertThat(ex.getMessage()).isEqualTo(
|
||||
"404 Not Found: [" + bodyGenerator.apply(200) + "... (500 bytes)]"));
|
||||
.withMessage("404 Not Found: [" + bodyGenerator.apply(200) + "... (500 bytes)]");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user