PipelineManagerServlet extends AbstractApiServlet { @Override protected void delete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String[] names = req.getParameterValues(PARAM_NAME); if (names == null || names.length == 0) { respondWithBadArguments(resp); return; } for (String name : names) { manager.remove(name); } respond(resp, HttpStatus.OK_200); } PipelineManagerServlet(BaleenPipelineManager manager);  PipelineManagerServlet(Logger logger, Class<?> clazz, BaleenPipelineManager manager); @Override WebPermission[] getPermissions(); static final String PARAM_NAME; static final String PARAM_YAML; static final String PARAM_MULTIPLICITY; }
@Test public void testDelete() throws Exception { ServletCaller caller = new ServletCaller(); caller.setRequestUri(ROOT); caller.addParameter(NAME, "mock"); caller.doDelete(new PipelineManagerServlet(pipelineManager)); assertEquals(200, caller.getResponseStatus().intValue()); }