@Test public void testOnComplete() throws Exception { int mockStatusCode = 200; ParsecAsyncCompletionHandlerBase asyncBase = new ParsecAsyncCompletionHandlerBase(); com.ning.http.client.Response ningResponse = mock(com.ning.http.client.Response.class); when(ningResponse.getStatusCode()).thenReturn(mockStatusCode); Response response = asyncBase.onCompleted(ningResponse); assertEquals(response.getStatus(), ningResponse.getStatusCode()); }
@Override public Response onCompleted(final com.ning.http.client.Response ningResponse) throws Exception { return ParsecHttpUtil.getResponse(ningResponse); }
ParsecAsyncCompletionHandlerBase extends AsyncCompletionHandler<Response> { @Override public Response onCompleted(final com.ning.http.client.Response ningResponse) throws Exception { return ParsecHttpUtil.getResponse(ningResponse); } }
ParsecAsyncCompletionHandlerBase extends AsyncCompletionHandler<Response> { @Override public Response onCompleted(final com.ning.http.client.Response ningResponse) throws Exception { return ParsecHttpUtil.getResponse(ningResponse); }  }
ParsecAsyncCompletionHandlerBase extends AsyncCompletionHandler<Response> { @Override public Response onCompleted(final com.ning.http.client.Response ningResponse) throws Exception { return ParsecHttpUtil.getResponse(ningResponse); }  @Override Response onCompleted(final com.ning.http.client.Response ningResponse); }
ParsecAsyncCompletionHandlerBase extends AsyncCompletionHandler<Response> { @Override public Response onCompleted(final com.ning.http.client.Response ningResponse) throws Exception { return ParsecHttpUtil.getResponse(ningResponse); }  @Override Response onCompleted(final com.ning.http.client.Response ningResponse);  }