Home
last modified time | relevance | path

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

/external/guice/extensions/servlet/test/com/google/inject/servlet/
DServletDispatchIntegrationTest.java85 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipelineServlets() local
87 expect(requestMock.getRequestURI()) in testDispatchRequestToManagedPipelineServlets()
90 expect(requestMock.getContextPath()) in testDispatchRequestToManagedPipelineServlets()
95 replay(requestMock); in testDispatchRequestToManagedPipelineServlets()
97 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipelineServlets()
101 verify(requestMock); in testDispatchRequestToManagedPipelineServlets()
132 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipelineWithFilter() local
134 expect(requestMock.getRequestURI()) in testDispatchRequestToManagedPipelineWithFilter()
137 expect(requestMock.getContextPath()) in testDispatchRequestToManagedPipelineWithFilter()
142 replay(requestMock); in testDispatchRequestToManagedPipelineWithFilter()
[all …]
DVarargsFilterDispatchIntegrationTest.java65 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipeline() local
67 expect(requestMock.getRequestURI()) in testDispatchRequestToManagedPipeline()
70 expect(requestMock.getContextPath()) in testDispatchRequestToManagedPipeline()
75 replay(requestMock); in testDispatchRequestToManagedPipeline()
76 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipeline()
79 verify(requestMock); in testDispatchRequestToManagedPipeline()
104 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchThatNoFiltersFire() local
106 expect(requestMock.getRequestURI()) in testDispatchThatNoFiltersFire()
109 expect(requestMock.getContextPath()) in testDispatchThatNoFiltersFire()
114 replay(requestMock); in testDispatchThatNoFiltersFire()
[all …]
DVarargsServletDispatchIntegrationTest.java80 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipelineServlets() local
82 expect(requestMock.getRequestURI()) in testDispatchRequestToManagedPipelineServlets()
85 expect(requestMock.getContextPath()) in testDispatchRequestToManagedPipelineServlets()
90 replay(requestMock); in testDispatchRequestToManagedPipelineServlets()
92 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipelineServlets()
95 verify(requestMock); in testDispatchRequestToManagedPipelineServlets()
120 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testVarargsSkipDispatchRequestToManagedPipelineServlets() local
122 expect(requestMock.getRequestURI()) in testVarargsSkipDispatchRequestToManagedPipelineServlets()
125 expect(requestMock.getContextPath()) in testVarargsSkipDispatchRequestToManagedPipelineServlets()
130 replay(requestMock); in testVarargsSkipDispatchRequestToManagedPipelineServlets()
[all …]
DFilterDispatchIntegrationTest.java96 HttpServletRequest requestMock = control.createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipeline() local
98 expect(requestMock.getRequestURI()) in testDispatchRequestToManagedPipeline()
101 expect(requestMock.getContextPath()) in testDispatchRequestToManagedPipeline()
105 requestMock.setAttribute(REQUEST_DISPATCHER_REQUEST, true); in testDispatchRequestToManagedPipeline()
106 requestMock.removeAttribute(REQUEST_DISPATCHER_REQUEST); in testDispatchRequestToManagedPipeline()
119 pipeline.dispatch(requestMock, responseMock, filterChain); in testDispatchRequestToManagedPipeline()
152 HttpServletRequest requestMock = control.createMock(HttpServletRequest.class); in testDispatchThatNoFiltersFire() local
154 expect(requestMock.getRequestURI()) in testDispatchThatNoFiltersFire()
157 expect(requestMock.getContextPath()) in testDispatchThatNoFiltersFire()
163 filterChain.doFilter(requestMock, null); in testDispatchThatNoFiltersFire()
[all …]
DMultiModuleDispatchIntegrationTest.java75 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipeline() local
77 expect(requestMock.getRequestURI()) in testDispatchRequestToManagedPipeline()
80 expect(requestMock.getContextPath()) in testDispatchRequestToManagedPipeline()
85 replay(requestMock); in testDispatchRequestToManagedPipeline()
86 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipeline()
89 verify(requestMock); in testDispatchRequestToManagedPipeline()
DServletPipelineRequestDispatcherTest.java73 final HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testIncludeManagedServlet() local
75 expect(requestMock.getAttribute(A_KEY)) in testIncludeManagedServlet()
79 requestMock.setAttribute(REQUEST_DISPATCHER_REQUEST, true); in testIncludeManagedServlet()
80 requestMock.removeAttribute(REQUEST_DISPATCHER_REQUEST); in testIncludeManagedServlet()
111 replay(injector, binding, requestMock, mockBinding); in testIncludeManagedServlet()
121 dispatcher.include(requestMock, createMock(HttpServletResponse.class)); in testIncludeManagedServlet()
125 verify(injector, requestMock, mockBinding); in testIncludeManagedServlet()
136 final HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testForwardToManagedServlet() local
139 expect(requestMock.getAttribute(A_KEY)) in testForwardToManagedServlet()
143 requestMock.setAttribute(REQUEST_DISPATCHER_REQUEST, true); in testForwardToManagedServlet()
[all …]