Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public void stopServer(ConfigurableApplicationContext applicationContext) {
protected void configure(HttpServerTestOptions options) {
options.setContextPath(CONTEXT_PATH);
options.setTestPathParam(true);
options.setExpectedException(new RuntimeException(ServerEndpoint.EXCEPTION.getBody()));

options.setExpectedHttpRoute(
(endpoint, method) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ Mono<ResponseEntity<String>> error() {
}

@RequestMapping("/exception")
Flux<ResponseEntity<String>> exception() throws Exception {
Flux<ResponseEntity<String>> exception() {
return Flux.just(
controller(
EXCEPTION,
() -> {
throw new RuntimeException(EXCEPTION.getBody());
throw new IllegalStateException(EXCEPTION.getBody());
}));
}

Expand Down
Loading