Searched refs:requestMock (Results 1 – 6 of 6) sorted by relevance
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | ServletDispatchIntegrationTest.java | 84 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipelineServlets() local 86 expect(requestMock.getRequestURI()).andReturn("/index.html").times(1); in testDispatchRequestToManagedPipelineServlets() 87 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipelineServlets() 90 replay(requestMock); in testDispatchRequestToManagedPipelineServlets() 92 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipelineServlets() 96 verify(requestMock); in testDispatchRequestToManagedPipelineServlets() 133 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipelineWithFilter() local 135 expect(requestMock.getRequestURI()).andReturn("/index.html").times(2); in testDispatchRequestToManagedPipelineWithFilter() 136 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipelineWithFilter() 139 replay(requestMock); in testDispatchRequestToManagedPipelineWithFilter() [all …]
|
D | VarargsFilterDispatchIntegrationTest.java | 61 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipeline() local 63 expect(requestMock.getRequestURI()).andReturn("/index.html").anyTimes(); in testDispatchRequestToManagedPipeline() 64 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipeline() 67 replay(requestMock); in testDispatchRequestToManagedPipeline() 68 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipeline() 71 verify(requestMock); in testDispatchRequestToManagedPipeline() 103 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchThatNoFiltersFire() local 105 expect(requestMock.getRequestURI()).andReturn("/index.xhtml").anyTimes(); in testDispatchThatNoFiltersFire() 106 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchThatNoFiltersFire() 109 replay(requestMock); in testDispatchThatNoFiltersFire() [all …]
|
D | VarargsServletDispatchIntegrationTest.java | 79 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipelineServlets() local 81 expect(requestMock.getRequestURI()).andReturn("/index.html").times(1); in testDispatchRequestToManagedPipelineServlets() 82 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipelineServlets() 85 replay(requestMock); in testDispatchRequestToManagedPipelineServlets() 87 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipelineServlets() 90 verify(requestMock); in testDispatchRequestToManagedPipelineServlets() 122 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testVarargsSkipDispatchRequestToManagedPipelineServlets() local 124 expect(requestMock.getRequestURI()).andReturn("/index.html").times(3); in testVarargsSkipDispatchRequestToManagedPipelineServlets() 125 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testVarargsSkipDispatchRequestToManagedPipelineServlets() 128 replay(requestMock); in testVarargsSkipDispatchRequestToManagedPipelineServlets() [all …]
|
D | FilterDispatchIntegrationTest.java | 91 HttpServletRequest requestMock = control.createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipeline() local 93 expect(requestMock.getRequestURI()).andReturn("/index.html").anyTimes(); in testDispatchRequestToManagedPipeline() 94 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipeline() 96 requestMock.setAttribute(REQUEST_DISPATCHER_REQUEST, true); in testDispatchRequestToManagedPipeline() 97 requestMock.removeAttribute(REQUEST_DISPATCHER_REQUEST); in testDispatchRequestToManagedPipeline() 108 pipeline.dispatch(requestMock, responseMock, filterChain); in testDispatchRequestToManagedPipeline() 149 HttpServletRequest requestMock = control.createMock(HttpServletRequest.class); in testDispatchThatNoFiltersFire() local 151 expect(requestMock.getRequestURI()).andReturn("/index.xhtml").anyTimes(); in testDispatchThatNoFiltersFire() 152 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchThatNoFiltersFire() 156 filterChain.doFilter(requestMock, null); in testDispatchThatNoFiltersFire() [all …]
|
D | MultiModuleDispatchIntegrationTest.java | 71 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipeline() local 73 expect(requestMock.getRequestURI()).andReturn("/index.html").anyTimes(); in testDispatchRequestToManagedPipeline() 74 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipeline() 77 replay(requestMock); in testDispatchRequestToManagedPipeline() 78 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipeline() 81 verify(requestMock); in testDispatchRequestToManagedPipeline()
|
D | ServletPipelineRequestDispatcherTest.java | 72 final HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testIncludeManagedServlet() local 74 expect(requestMock.getAttribute(A_KEY)).andReturn(A_VALUE); in testIncludeManagedServlet() 76 requestMock.setAttribute(REQUEST_DISPATCHER_REQUEST, true); in testIncludeManagedServlet() 77 requestMock.removeAttribute(REQUEST_DISPATCHER_REQUEST); in testIncludeManagedServlet() 105 replay(injector, binding, requestMock, mockBinding); in testIncludeManagedServlet() 114 dispatcher.include(requestMock, createMock(HttpServletResponse.class)); in testIncludeManagedServlet() 118 verify(injector, requestMock, mockBinding); in testIncludeManagedServlet() 132 final HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testForwardToManagedServlet() local 135 expect(requestMock.getAttribute(A_KEY)).andReturn(A_VALUE); in testForwardToManagedServlet() 137 requestMock.setAttribute(REQUEST_DISPATCHER_REQUEST, true); in testForwardToManagedServlet() [all …]
|