Skip to content

Commit 508198d

Browse files
committed
test: Assert response status in decorator-throw interceptor catch test
1 parent a79a35d commit 508198d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/test/java/com/retailsvc/http/internal/DispatchHandlerTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,8 @@ void interceptorCanCatchDecoratorFailure() throws Exception {
152152
});
153153

154154
assertThat(caught.get()).isTrue();
155+
Response rendered = (Response) ex.getAttribute(DispatchHandler.RESPONSE_ATTR);
156+
assertThat(rendered).isNotNull();
157+
assertThat(rendered.status()).isEqualTo(HTTP_INTERNAL_ERROR);
155158
}
156159
}

0 commit comments

Comments
 (0)