StatusAssertion value methods fail when used with custom status code
This commit is contained in:
committed by
Juergen Hoeller
parent
b2bcb0f93a
commit
79b5710386
@@ -147,6 +147,10 @@ class StatusAssertionTests {
|
||||
assertions.value(equalTo(200)));
|
||||
}
|
||||
|
||||
@Test
|
||||
void matchesWithCustomStatus() {
|
||||
statusAssertions(600).value(equalTo(600));
|
||||
}
|
||||
|
||||
private StatusAssertions statusAssertions(HttpStatus status) {
|
||||
return statusAssertions(status.value());
|
||||
|
||||
Reference in New Issue
Block a user