@Test public void testInvalidAcceptMediatype() { Response response = request("/", "text/plain").get(); assertEquals(Response.Status.NOT_ACCEPTABLE.getStatusCode(), response.getStatus()); assertNull(response.getMediaType()); }
@GET @PerformanceMetric("root.get+v2") public Map<String, String> get() { return new HashMap<String, String>(); }
RootResource { @GET @PerformanceMetric("root.get+v2") public Map<String, String> get() { return new HashMap<String, String>(); } }
RootResource { @GET @PerformanceMetric("root.get+v2") public Map<String, String> get() { return new HashMap<String, String>(); }  }
RootResource { @GET @PerformanceMetric("root.get+v2") public Map<String, String> get() { 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 { @GET @PerformanceMetric("root.get+v2") public Map<String, String> get() { 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);  }