Fix failing tests
This commit is contained in:
parent
28a5c3009e
commit
03c305136d
|
|
@ -88,7 +88,8 @@ public class DispatcherHandlerErrorTests {
|
||||||
StepVerifier.create(publisher)
|
StepVerifier.create(publisher)
|
||||||
.consumeErrorWith(error -> {
|
.consumeErrorWith(error -> {
|
||||||
assertThat(error, instanceOf(ResponseStatusException.class));
|
assertThat(error, instanceOf(ResponseStatusException.class));
|
||||||
assertThat(error.getMessage(), is("Response status 404 with reason \"No matching handler\""));
|
assertThat(error.getMessage(),
|
||||||
|
is("Response status 404 NOT_FOUND with reason \"No matching handler\""));
|
||||||
})
|
})
|
||||||
.verify();
|
.verify();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ public class InvocableHandlerMethodTests {
|
||||||
fail("Expected UnsupportedMediaTypeStatusException");
|
fail("Expected UnsupportedMediaTypeStatusException");
|
||||||
}
|
}
|
||||||
catch (UnsupportedMediaTypeStatusException ex) {
|
catch (UnsupportedMediaTypeStatusException ex) {
|
||||||
assertThat(ex.getMessage(), is("Response status 415 with reason \"boo\""));
|
assertThat(ex.getMessage(), is("Response status 415 UNSUPPORTED_MEDIA_TYPE with reason \"boo\""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -170,8 +170,8 @@ public class RequestMappingInfoHandlerMappingTests {
|
||||||
Mono<Object> mono = this.handlerMapping.getHandler(exchange);
|
Mono<Object> mono = this.handlerMapping.getHandler(exchange);
|
||||||
|
|
||||||
assertError(mono, UnsupportedMediaTypeStatusException.class,
|
assertError(mono, UnsupportedMediaTypeStatusException.class,
|
||||||
ex -> assertEquals("Response status 415 with reason \"Invalid mime type \"bogus\": " +
|
ex -> assertEquals("Response status 415 UNSUPPORTED_MEDIA_TYPE with reason " +
|
||||||
"does not contain '/'\"", ex.getMessage()));
|
"\"Invalid mime type \"bogus\": does not contain '/'\"", ex.getMessage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test // SPR-8462
|
@Test // SPR-8462
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue