Home
last modified time | relevance | path

Searched refs:mockRequest (Results 1 – 1 of 1) sorted by relevance

/external/guice/extensions/servlet/test/com/google/inject/servlet/
DServletPipelineRequestDispatcherTest.java212 final HttpServletRequest mockRequest = createMock(HttpServletRequest.class); in forwardToManagedServletFailureOnCommittedBuffer() local
242 replay(injector, binding, mockRequest, mockResponse, mockBinding); in forwardToManagedServletFailureOnCommittedBuffer()
253 dispatcher.forward(mockRequest, mockResponse); in forwardToManagedServletFailureOnCommittedBuffer()
255 verify(injector, mockRequest, mockResponse, mockBinding); in forwardToManagedServletFailureOnCommittedBuffer()
260 final HttpServletRequest mockRequest = createMock(HttpServletRequest.class); in testWrappedRequestUriAndUrlConsistency() local
261 expect(mockRequest.getScheme()).andReturn("http"); in testWrappedRequestUriAndUrlConsistency()
262 expect(mockRequest.getServerName()).andReturn("the.server"); in testWrappedRequestUriAndUrlConsistency()
263 expect(mockRequest.getServerPort()).andReturn(12345); in testWrappedRequestUriAndUrlConsistency()
264 replay(mockRequest); in testWrappedRequestUriAndUrlConsistency()
265 HttpServletRequest wrappedRequest = ManagedServletPipeline.wrapRequest(mockRequest, "/new-uri"); in testWrappedRequestUriAndUrlConsistency()
[all …]