Code example for HttpRequest

Methods: getRequestLine

0
        Assert.assertTrue(requestConsumer instanceof BasicAsyncRequestConsumer);
    } 
 
    @Test 
    public void testHandleRequest() throws Exception { 
        Mockito.when(this.request.getRequestLine()).thenReturn(new BasicRequestLine("GET", "/", HttpVersion.HTTP_1_0));
 
        this.asyncRequestHandler.handle(this.request, this.httpexchange, this.context);
 
        Mockito.verify(this.requestHandler).handle(
                Mockito.eq(this.request), Mockito.eq(this.response), Mockito.eq(this.context));
        Mockito.verify(this.httpexchange).submitResponse();
    } 
 
}