TemplateRest extends AbstractSLARest { @DELETE @Path("{uuid}") @Produces(MediaType.APPLICATION_XML) public Response deleteTemplate(@PathParam("uuid") String uuid) { logger.debug("DELETE /templates/" + uuid); TemplateHelper templateRestService = getTemplateHelper(); boolean deleted; try { deleted = templateRestService.deleteTemplateByUuid(uuid); if (deleted) return buildResponse( 204, printMessage(204, "The template with uuid:" + uuid + " was deleted successfully")); else return buildResponse( 404, printError(404, "There is no template with uuid " + uuid + " in the SLA Repository Database")); } catch (HelperException e) { return buildResponse(e); } } TemplateRest(); @GET @Produces(MediaType.APPLICATION_XML) Response getTemplates(); @GET @Path("{id}") @Produces(MediaType.APPLICATION_XML) Response getTemplateByUuid(@PathParam("id") String templateId); @DELETE @Path("{uuid}") @Produces(MediaType.APPLICATION_XML) Response deleteTemplate(@PathParam("uuid") String uuid); @POST @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response createTemplate(@Context HttpHeaders hh,@Context UriInfo uriInfo, String payload); @PUT @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response updateTemplate(@Context HttpHeaders hh, String payload);  }
@Test public void testDeleteTemplate() { assert (true); }