@Test public void testApplyGetOptionInteger() { int hitsPerPage = target("configuration") .path("hitsPerPage") .request() .get(int.class); assertEquals(env.getHitsPerPage(), hitsPerPage); }
@GET @Produces(MediaType.APPLICATION_XML) public String get() { return env.getConfigurationXML(); }
ConfigurationController { @GET @Produces(MediaType.APPLICATION_XML) public String get() { return env.getConfigurationXML(); } }
ConfigurationController { @GET @Produces(MediaType.APPLICATION_XML) public String get() { return env.getConfigurationXML(); }  }
ConfigurationController { @GET @Produces(MediaType.APPLICATION_XML) public String get() { return env.getConfigurationXML(); }  @GET @Produces(MediaType.APPLICATION_XML) String get(); @PUT @Consumes(MediaType.APPLICATION_XML) void set(final String body, @QueryParam("reindex") final boolean reindex); @GET @Path("/{field}") @Produces(MediaType.APPLICATION_JSON) Object getField(@PathParam("field") final String field); @PUT @Path("/{field}") void setField(@PathParam("field") final String field, final String value); @POST @Path("/authorization/reload") void reloadAuthorization(); }
ConfigurationController { @GET @Produces(MediaType.APPLICATION_XML) public String get() { return env.getConfigurationXML(); }  @GET @Produces(MediaType.APPLICATION_XML) String get(); @PUT @Consumes(MediaType.APPLICATION_XML) void set(final String body, @QueryParam("reindex") final boolean reindex); @GET @Path("/{field}") @Produces(MediaType.APPLICATION_JSON) Object getField(@PathParam("field") final String field); @PUT @Path("/{field}") void setField(@PathParam("field") final String field, final String value); @POST @Path("/authorization/reload") void reloadAuthorization();  }