Skip to content

Commit

Permalink
Correct assertion
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Nov 15, 2023
1 parent 49f9bee commit bf52697
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static io.netty.handler.codec.http.HttpHeaders.Values.APPLICATION_JSON;

public class SecurityResponseTests {

Expand All @@ -30,6 +29,6 @@ public void testSecurityResponseHasSingleContentType() {

final RestResponse restResponse = response.asRestResponse();
assertThat(restResponse.status(), equalTo(RestStatus.OK));
assertThat(restResponse.contentType(), equalTo(APPLICATION_JSON));
assertThat(restResponse.contentType(), equalTo(XContentType.JSON.mediaType()));
}
}

0 comments on commit bf52697

Please sign in to comment.