protected void end() { // End the vertx response vertxRequest.response().end(); // Call any post response processors if (!postResponseProcessors.isEmpty()) { for (VertxPostResponseProcessor processor : postResponseProcessors) { processor.process(vertxRequest.response(), jerseyResponse); } } }
protected void end() { // End the vertx response vertxRequest.response().end(); // Call any post response processors if (!postResponseProcessors.isEmpty()) { for (VertxPostResponseProcessor processor : postResponseProcessors) { processor.process(vertxRequest.response(), jerseyResponse); } } }
protected void end() { // End the vertx response vertxRequest.response().end(); // Call any post response processors if (!postResponseProcessors.isEmpty()) { for (VertxPostResponseProcessor processor : postResponseProcessors) { processor.process(vertxRequest.response(), jerseyResponse); } } }
@Test public void testCommit() throws Exception { VertxPostResponseProcessor processor1 = mock(VertxPostResponseProcessor.class); VertxPostResponseProcessor processor2 = mock(VertxPostResponseProcessor.class); postResponseProcessors.add(processor1); postResponseProcessors.add(processor2); writer.commit(); verify(response).end(); verify(processor1).process(eq(response), any(ContainerResponse.class)); verify(processor2).process(eq(response), any(ContainerResponse.class)); }