Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cbuescher committed Sep 6, 2024
1 parent 75ebf34 commit 3691008
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void testFilterUnknownContentTypeThrows() throws IOException {
}
RestRequestFilter filter = () -> Collections.singleton("root.second.third");
RestRequest filtered = filter.getFilteredRequest(restRequest);
IllegalStateException e = expectThrows(IllegalStateException.class, () -> filtered.content());
Exception e = expectThrows(IllegalArgumentException.class, () -> filtered.content());
assertThat(e.getMessage(), containsString("unknown content type"));
}

Expand Down

0 comments on commit 3691008

Please sign in to comment.