Skip to content

Commit bf52697

Browse files
committed
Correct assertion
Signed-off-by: Craig Perkins <cwperx@amazon.com>
1 parent 49f9bee commit bf52697

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/test/java/org/opensearch/security/filter/SecurityResponseTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import static org.hamcrest.MatcherAssert.assertThat;
2222
import static org.hamcrest.Matchers.equalTo;
23-
import static io.netty.handler.codec.http.HttpHeaders.Values.APPLICATION_JSON;
2423

2524
public class SecurityResponseTests {
2625

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

3130
final RestResponse restResponse = response.asRestResponse();
3231
assertThat(restResponse.status(), equalTo(RestStatus.OK));
33-
assertThat(restResponse.contentType(), equalTo(APPLICATION_JSON));
32+
assertThat(restResponse.contentType(), equalTo(XContentType.JSON.mediaType()));
3433
}
3534
}

0 commit comments

Comments
 (0)