@Test public final void testModifyStep() { given().contentType(ContentType.JSON).body("").when() .put(WORKER_STEP_URI + "/idAsync").then() .statusCode(Status.NOT_IMPLEMENTED.getStatusCode()); }
@Path("tasks/{id_async}") @PUT @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response modifyStep(@PathParam("id_async") String idAsync) { final Status status = Status.NOT_IMPLEMENTED; return Response.status(status).entity(getErrorEntity(status)).build(); }
WorkerResource extends ApplicationStatusResource { @Path("tasks/{id_async}") @PUT @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response modifyStep(@PathParam("id_async") String idAsync) { final Status status = Status.NOT_IMPLEMENTED; return Response.status(status).entity(getErrorEntity(status)).build(); } }
WorkerResource extends ApplicationStatusResource { @Path("tasks/{id_async}") @PUT @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response modifyStep(@PathParam("id_async") String idAsync) { final Status status = Status.NOT_IMPLEMENTED; return Response.status(status).entity(getErrorEntity(status)).build(); } WorkerResource(PluginLoader pluginLoader);   WorkerResource(PluginLoader pluginLoader, Worker worker); }
WorkerResource extends ApplicationStatusResource { @Path("tasks/{id_async}") @PUT @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response modifyStep(@PathParam("id_async") String idAsync) { final Status status = Status.NOT_IMPLEMENTED; return Response.status(status).entity(getErrorEntity(status)).build(); } WorkerResource(PluginLoader pluginLoader);   WorkerResource(PluginLoader pluginLoader, Worker worker); @Path("tasks") @GET @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getStepsList(); @Path("tasks") @POST @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response submitStep(@Context HttpHeaders headers, JsonNode descriptionStepJson); @Path("tasks/{id_async}") @GET @Produces(MediaType.APPLICATION_JSON) Response getStepStatus(@PathParam("id_async") String idAsync); @Path("tasks/{id_async}") @PUT @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response modifyStep(@PathParam("id_async") String idAsync); }
WorkerResource extends ApplicationStatusResource { @Path("tasks/{id_async}") @PUT @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response modifyStep(@PathParam("id_async") String idAsync) { final Status status = Status.NOT_IMPLEMENTED; return Response.status(status).entity(getErrorEntity(status)).build(); } WorkerResource(PluginLoader pluginLoader);   WorkerResource(PluginLoader pluginLoader, Worker worker); @Path("tasks") @GET @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response getStepsList(); @Path("tasks") @POST @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response submitStep(@Context HttpHeaders headers, JsonNode descriptionStepJson); @Path("tasks/{id_async}") @GET @Produces(MediaType.APPLICATION_JSON) Response getStepStatus(@PathParam("id_async") String idAsync); @Path("tasks/{id_async}") @PUT @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) Response modifyStep(@PathParam("id_async") String idAsync); final WorkerFactory WORKER_FACTORY; }