@Test public void testCreateResourceWithUppercaseUsername() { ActiveWidgetLayoutService activeWidgetLayoutService = new TestActiveWidgetLayoutService("MyUser"); Response response = activeWidgetLayoutService.getServices(null, null, null); assertEquals("myuser", ((WidgetLayoutEntity) response.getEntity()).getUserName()); }
@GET @Produces("text/plain") public Response getServices(String body, @Context HttpHeaders headers, @Context UriInfo ui) { return handleRequest(headers, body, ui, Request.Type.GET, createResource(null)); }
ActiveWidgetLayoutService extends BaseService { @GET @Produces("text/plain") public Response getServices(String body, @Context HttpHeaders headers, @Context UriInfo ui) { return handleRequest(headers, body, ui, Request.Type.GET, createResource(null)); } }
ActiveWidgetLayoutService extends BaseService { @GET @Produces("text/plain") public Response getServices(String body, @Context HttpHeaders headers, @Context UriInfo ui) { return handleRequest(headers, body, ui, Request.Type.GET, createResource(null)); } ActiveWidgetLayoutService(String userName); }
ActiveWidgetLayoutService extends BaseService { @GET @Produces("text/plain") public Response getServices(String body, @Context HttpHeaders headers, @Context UriInfo ui) { return handleRequest(headers, body, ui, Request.Type.GET, createResource(null)); } ActiveWidgetLayoutService(String userName); @GET @Produces("text/plain") Response getServices(String body, @Context HttpHeaders headers, @Context UriInfo ui); @PUT @Produces("text/plain") Response updateServices(String body, @Context HttpHeaders headers, @Context UriInfo ui); }
ActiveWidgetLayoutService extends BaseService { @GET @Produces("text/plain") public Response getServices(String body, @Context HttpHeaders headers, @Context UriInfo ui) { return handleRequest(headers, body, ui, Request.Type.GET, createResource(null)); } ActiveWidgetLayoutService(String userName); @GET @Produces("text/plain") Response getServices(String body, @Context HttpHeaders headers, @Context UriInfo ui); @PUT @Produces("text/plain") Response updateServices(String body, @Context HttpHeaders headers, @Context UriInfo ui);  }