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.java219 final HttpServletRequest mockRequest = createMock(HttpServletRequest.class); in forwardToManagedServletFailureOnCommittedBuffer() local
253 replay(injector, binding, mockRequest, mockResponse, mockBinding); in forwardToManagedServletFailureOnCommittedBuffer()
264 dispatcher.forward(mockRequest, mockResponse); in forwardToManagedServletFailureOnCommittedBuffer()
267 verify(injector, mockRequest, mockResponse, mockBinding); in forwardToManagedServletFailureOnCommittedBuffer()
272 final HttpServletRequest mockRequest = createMock(HttpServletRequest.class); in testWrappedRequestUriAndUrlConsistency() local
273 expect(mockRequest.getScheme()).andReturn("http"); in testWrappedRequestUriAndUrlConsistency()
274 expect(mockRequest.getServerName()).andReturn("the.server"); in testWrappedRequestUriAndUrlConsistency()
275 expect(mockRequest.getServerPort()).andReturn(12345); in testWrappedRequestUriAndUrlConsistency()
276 replay(mockRequest); in testWrappedRequestUriAndUrlConsistency()
277 HttpServletRequest wrappedRequest = ManagedServletPipeline.wrapRequest(mockRequest, "/new-uri"); in testWrappedRequestUriAndUrlConsistency()
[all …]