@Test public void testInvalidEntityContentType() { Response.Status UNSUPPORTED_MEDIA_TYPE = Response.Status.UNSUPPORTED_MEDIA_TYPE; Response response = request("/", Versions.KAFKA_V2_JSON + ", " + Versions.GENERIC_REQUEST) .post(Entity.entity("", "text/plain")); assertErrorResponse( UNSUPPORTED_MEDIA_TYPE, response, UNSUPPORTED_MEDIA_TYPE.getStatusCode(), "HTTP " + UNSUPPORTED_MEDIA_TYPE.getStatusCode() + " " + UNSUPPORTED_MEDIA_TYPE .getReasonPhrase(), Versions.KAFKA_V2_JSON ); }
@POST @PerformanceMetric("root.post+v2") public Map<String, String> post(@Valid Map<String, String> request) { return new HashMap<String, String>(); }
RootResource { @POST @PerformanceMetric("root.post+v2") public Map<String, String> post(@Valid Map<String, String> request) { return new HashMap<String, String>(); } }
RootResource { @POST @PerformanceMetric("root.post+v2") public Map<String, String> post(@Valid Map<String, String> request) { return new HashMap<String, String>(); }  }
RootResource { @POST @PerformanceMetric("root.post+v2") public Map<String, String> post(@Valid Map<String, String> request) { return new HashMap<String, String>(); }  @GET @PerformanceMetric("root.get+v2") Map<String, String> get(); @POST @PerformanceMetric("root.post+v2") Map<String, String> post(@Valid Map<String, String> request); }
RootResource { @POST @PerformanceMetric("root.post+v2") public Map<String, String> post(@Valid Map<String, String> request) { return new HashMap<String, String>(); }  @GET @PerformanceMetric("root.get+v2") Map<String, String> get(); @POST @PerformanceMetric("root.post+v2") Map<String, String> post(@Valid Map<String, String> request);  }