We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49f9bee commit bf52697Copy full SHA for bf52697
1 file changed
src/test/java/org/opensearch/security/filter/SecurityResponseTests.java
@@ -20,7 +20,6 @@
20
21
import static org.hamcrest.MatcherAssert.assertThat;
22
import static org.hamcrest.Matchers.equalTo;
23
-import static io.netty.handler.codec.http.HttpHeaders.Values.APPLICATION_JSON;
24
25
public class SecurityResponseTests {
26
@@ -30,6 +29,6 @@ public void testSecurityResponseHasSingleContentType() {
30
29
31
final RestResponse restResponse = response.asRestResponse();
32
assertThat(restResponse.status(), equalTo(RestStatus.OK));
33
- assertThat(restResponse.contentType(), equalTo(APPLICATION_JSON));
+ assertThat(restResponse.contentType(), equalTo(XContentType.JSON.mediaType()));
34
}
35
0 commit comments