Home
last modified time | relevance | path

Searched refs:createMock (Results 1 – 25 of 219) sorted by relevance

123456789

/external/guice/extensions/servlet/test/com/google/inject/servlet/
DFilterDefinitionTest.java4 import static org.easymock.EasyMock.createMock;
38 Injector injector = createMock(Injector.class); in testFilterInitAndConfig()
39 Binding binding = createMock(Binding.class); in testFilterInitAndConfig()
58 ServletContext servletContext = createMock(ServletContext.class); in testFilterInitAndConfig()
91 Injector injector = createMock(Injector.class); in testFilterCreateDispatchDestroy()
92 Binding binding = createMock(Binding.class); in testFilterCreateDispatchDestroy()
93 HttpServletRequest request = createMock(HttpServletRequest.class); in testFilterCreateDispatchDestroy()
115 filterDef.init(createMock(ServletContext.class), injector, Sets.<Filter>newIdentityHashSet()); in testFilterCreateDispatchDestroy()
145 Injector injector = createMock(Injector.class); in testFilterCreateDispatchDestroySupressChain()
146 Binding binding = createMock(Binding.class); in testFilterCreateDispatchDestroySupressChain()
[all …]
DServletPipelineRequestDispatcherTest.java21 import static org.easymock.EasyMock.createMock;
70 final Injector injector = createMock(Injector.class); in testIncludeManagedServlet()
71 final Binding binding = createMock(Binding.class); in testIncludeManagedServlet()
72 final HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testIncludeManagedServlet()
99 Binding<ServletDefinition> mockBinding = createMock(Binding.class); in testIncludeManagedServlet()
114 dispatcher.include(requestMock, createMock(HttpServletResponse.class)); in testIncludeManagedServlet()
130 final Injector injector = createMock(Injector.class); in testForwardToManagedServlet()
131 final Binding binding = createMock(Binding.class); in testForwardToManagedServlet()
132 final HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testForwardToManagedServlet()
133 final HttpServletResponse mockResponse = createMock(HttpServletResponse.class); in testForwardToManagedServlet()
[all …]
DServletDefinitionPathsTest.java21 import static org.easymock.EasyMock.createMock;
64 Injector injector = createMock(Injector.class); in servletPath()
65 Binding binding = createMock(Binding.class); in servletPath()
66 HttpServletRequest request = createMock(HttpServletRequest.class); in servletPath()
67 HttpServletResponse response = createMock(HttpServletResponse.class); in servletPath()
154 Injector injector = createMock(Injector.class); in pathInfoWithServletStyleMatching()
155 Binding binding = createMock(Binding.class); in pathInfoWithServletStyleMatching()
156 HttpServletRequest request = createMock(HttpServletRequest.class); in pathInfoWithServletStyleMatching()
157 HttpServletResponse response = createMock(HttpServletResponse.class); in pathInfoWithServletStyleMatching()
265 Injector injector = createMock(Injector.class); in pathInfoWithRegexMatching()
[all …]
DServletDispatchIntegrationTest.java20 import static org.easymock.EasyMock.createMock;
84 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipelineServlets()
92 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipelineServlets()
133 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipelineWithFilter()
141 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipelineWithFilter()
258 final HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testForwardUsingRequestDispatcher()
259 HttpServletResponse responseMock = createMock(HttpServletResponse.class); in testForwardUsingRequestDispatcher()
272 new GuiceFilter().doFilter(requestMock, responseMock, createMock(FilterChain.class)); in testForwardUsingRequestDispatcher()
296 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testQueryInRequestUri_regex()
304 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testQueryInRequestUri_regex()
[all …]
DVarargsFilterDispatchIntegrationTest.java3 import static org.easymock.EasyMock.createMock;
61 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipeline()
68 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipeline()
103 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchThatNoFiltersFire()
110 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchThatNoFiltersFire()
146 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchFilterPipelineWithRegexMatching()
153 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchFilterPipelineWithRegexMatching()
DContinuingRequestIntegrationTest.java19 import static org.easymock.EasyMock.createMock;
126 FilterConfig filterConfig = createMock(FilterConfig.class); in testRequestContinuesInOtherThread()
127 expect(filterConfig.getServletContext()).andReturn(createMock(ServletContext.class)); in testRequestContinuesInOtherThread()
131 HttpServletRequest request = createMock(HttpServletRequest.class); in testRequestContinuesInOtherThread()
138 FilterChain filterChain = createMock(FilterChain.class); in testRequestContinuesInOtherThread()
170 FilterConfig filterConfig = createMock(FilterConfig.class); in testRequestContinuationDiesInHttpRequestThread()
171 expect(filterConfig.getServletContext()).andReturn(createMock(ServletContext.class)); in testRequestContinuationDiesInHttpRequestThread()
175 HttpServletRequest request = createMock(HttpServletRequest.class); in testRequestContinuationDiesInHttpRequestThread()
182 FilterChain filterChain = createMock(FilterChain.class); in testRequestContinuationDiesInHttpRequestThread()
DVarargsServletDispatchIntegrationTest.java19 import static org.easymock.EasyMock.createMock;
79 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipelineServlets()
87 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipelineServlets()
122 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testVarargsSkipDispatchRequestToManagedPipelineServlets()
130 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testVarargsSkipDispatchRequestToManagedPipelineServlets()
167 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipelineWithFilter()
175 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipelineWithFilter()
DServletDefinitionTest.java20 import static org.easymock.EasyMock.createMock;
50 Injector injector = createMock(Injector.class); in testServletInitAndConfig()
51 Binding binding = createMock(Binding.class); in testServletInitAndConfig()
76 ServletContext servletContext = createMock(ServletContext.class); in testServletInitAndConfig()
115 HttpServletResponse servletResponse = createMock(HttpServletResponse.class); in testServiceWithContextPath()
116 HttpServletRequest servletRequest = createMock(HttpServletRequest.class); in testServiceWithContextPath()
DFilterPipelineTest.java3 import static org.easymock.EasyMock.createMock;
62 FilterConfig filterConfig = createMock(FilterConfig.class); in testDispatchThruGuiceFilter()
63 ServletContext servletContext = createMock(ServletContext.class); in testDispatchThruGuiceFilter()
64 HttpServletRequest request = createMock(HttpServletRequest.class); in testDispatchThruGuiceFilter()
65 FilterChain proceedingFilterChain = createMock(FilterChain.class); in testDispatchThruGuiceFilter()
DInvalidScopeBindingTest.java3 import static org.easymock.EasyMock.createMock;
39 guiceFilter.init(createMock(FilterConfig.class)); in testServletInNonSingletonScopeThrowsServletException()
60 guiceFilter.init(createMock(FilterConfig.class)); in testFilterInNonSingletonScopeThrowsServletException()
86 guiceFilter.init(createMock(FilterConfig.class)); in testHappyCaseFilter()
DInjectedFilterPipelineTest.java3 import static org.easymock.EasyMock.createMock;
80 FilterConfig filterConfig = createMock(FilterConfig.class); in testDispatchThruInjectedGuiceFilter()
81 ServletContext servletContext = createMock(ServletContext.class); in testDispatchThruInjectedGuiceFilter()
82 HttpServletRequest request = createMock(HttpServletRequest.class); in testDispatchThruInjectedGuiceFilter()
83 FilterChain proceedingFilterChain = createMock(FilterChain.class); in testDispatchThruInjectedGuiceFilter()
114 FilterChain proceedingFilterChain2 = createMock(FilterChain.class); in testDispatchThruInjectedGuiceFilter()
DContextPathTest.java86 servletContext = globalControl.createMock(ServletContext.class); in setUp()
87 filterConfig = globalControl.createMock(FilterConfig.class); in setUp()
122 HttpServletRequest req = testControl.createMock(HttpServletRequest.class); in testSimple()
123 HttpServletResponse res = testControl.createMock(HttpServletResponse.class); in testSimple()
251 HttpServletRequest req = testControl.createMock(HttpServletRequest.class); in runTest()
252 HttpServletResponse res = testControl.createMock(HttpServletResponse.class); in runTest()
DFilterDispatchIntegrationTest.java91 HttpServletRequest requestMock = control.createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipeline()
99 HttpServletResponse responseMock = control.createMock(HttpServletResponse.class); in testDispatchRequestToManagedPipeline()
104 FilterChain filterChain = control.createMock(FilterChain.class); in testDispatchRequestToManagedPipeline()
149 HttpServletRequest requestMock = control.createMock(HttpServletRequest.class); in testDispatchThatNoFiltersFire()
155 FilterChain filterChain = control.createMock(FilterChain.class); in testDispatchThatNoFiltersFire()
193 HttpServletRequest requestMock = control.createMock(HttpServletRequest.class); in testDispatchFilterPipelineWithRegexMatching()
199 FilterChain filterChain = control.createMock(FilterChain.class); in testDispatchFilterPipelineWithRegexMatching()
266 HttpServletRequest requestMock = control.createMock(HttpServletRequest.class); in runRequestForPath()
270 FilterChain filterChain = control.createMock(FilterChain.class); in runRequestForPath()
DMultipleServletInjectorsTest.java19 import static org.easymock.EasyMock.createMock;
44 ServletContext fakeContextOne = createMock(ServletContext.class); in testTwoInjectors()
45 ServletContext fakeContextTwo = createMock(ServletContext.class); in testTwoInjectors()
DMultiModuleDispatchIntegrationTest.java3 import static org.easymock.EasyMock.createMock;
71 HttpServletRequest requestMock = createMock(HttpServletRequest.class); in testDispatchRequestToManagedPipeline()
78 pipeline.dispatch(requestMock, null, createMock(FilterChain.class)); in testDispatchRequestToManagedPipeline()
/external/easymock/src/org/easymock/
DEasyMockSupport.java43 return createStrictControl().createMock(toMock); in createStrictMock()
62 return createStrictControl().createMock(name, toMock); in createStrictMock()
76 public <T> T createMock(Class<T> toMock) { in createMock() method in EasyMockSupport
77 return createControl().createMock(toMock); in createMock()
96 public <T> T createMock(String name, Class<T> toMock) { in createMock() method in EasyMockSupport
97 return createControl().createMock(name, toMock); in createMock()
113 return createNiceControl().createMock(toMock); in createNiceMock()
134 return createNiceControl().createMock(name, toMock); in createNiceMock()
DIMocksControl.java29 <T> T createMock(Class<T> toMock); in createMock() method
39 <T> T createMock(String name, Class<T> toMock); in createMock() method
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DInlineByteBuddyMockMakerTest.java50 … FinalClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<FinalClass>(settings)); in should_create_mock_from_final_class()
57 Pattern proxy = mockMaker.createMock(settings, new MockHandlerImpl<Pattern>(settings)); in should_create_mock_from_final_class_in_the_JDK()
64 …FinalMethodAbstractType proxy = mockMaker.createMock(settings, new MockHandlerImpl<FinalMethodAbst… in should_create_mock_from_abstract_class_with_final_method()
72 … FinalMethod proxy = mockMaker.createMock(settings, new MockHandlerImpl<FinalMethod>(settings)); in should_create_mock_from_final_class_with_interface_methods()
80 …GenericSubClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<GenericSubClass>(settin… in should_detect_non_overridden_generic_method_of_supertype()
87 HashMap proxy = mockMaker.createMock(settings, new MockHandlerImpl<HashMap>(settings)); in should_create_mock_from_hashmap()
96 mockMaker.createMock(settings, new MockHandlerImpl(settings)); in should_throw_exception_redefining_unmodifiable_class()
110 mockMaker.createMock(settings, new MockHandlerImpl(settings)); in should_throw_exception_redefining_array()
120 EnumClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<EnumClass>(settings)); in should_create_mock_from_enum()
131 mockMaker.createMock(settings, new MockHandlerImpl<FinalClass>(settings)); in should_fail_at_creating_a_mock_of_a_final_class_with_explicit_serialization()
[all …]
DAbstractByteBuddyMockMakerTest.java43 … SomeInterface proxy = mockMaker.createMock(settingsFor(SomeInterface.class), dummyHandler()); in should_create_mock_from_interface()
52 …ClassWithoutConstructor proxy = mockMaker.createMock(settingsFor(ClassWithoutConstructor.class), d… in should_create_mock_from_class()
65 …ClassWithDodgyConstructor mock = mockMaker.createMock(settingsFor(ClassWithDodgyConstructor.class)… in should_create_mock_from_class_even_when_constructor_is_dodgy()
71 SomeClass mockOne = mockMaker.createMock(settingsFor(SomeClass.class), dummyHandler()); in should_mocks_have_different_interceptors()
72 SomeClass mockTwo = mockMaker.createMock(settingsFor(SomeClass.class), dummyHandler()); in should_mocks_have_different_interceptors()
83 …SomeClass mock = mockMaker.createMock(settingsFor(SomeClass.class, SomeInterface.class), dummyHand… in should_use_ancillary_Types()
90 …OtherClass mock = mockMaker.createMock(settingsWithConstructorFor(OtherClass.class), dummyHandler(… in should_create_class_by_constructor()
96 …SerializableClass proxy = mockMaker.createMock(serializableSettingsFor(SerializableClass.class, Se… in should_allow_serialization()
110 …SampleClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<CallingSuperMethodClass>(se… in should_create_mock_from_class_with_super_call_to_final_method()
117 … SampleClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<SampleClass>(settings)); in should_reset_mock_and_set_new_handler()
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DServiceTest.java73 mockController = control.createMock(RpcController.class); in setUp()
84 TestService mockService = control.createMock(TestService.class); in testCallMethod()
101 TestService mockService = control.createMock(TestService.class); in testGetPrototype()
119 RpcChannel mockChannel = control.createMock(RpcChannel.class); in testStub()
146 control.createMock(BlockingRpcChannel.class); in testBlockingStub()
172 control.createMock(ServiceWithNoOuter.Interface.class); in testNewReflectiveService()
173 RpcController controller = control.createMock(RpcController.class); in testNewReflectiveService()
201 control.createMock(ServiceWithNoOuter.BlockingInterface.class); in testNewReflectiveBlockingService()
202 RpcController controller = control.createMock(RpcController.class); in testNewReflectiveBlockingService()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DServiceTest.java69 mockController = control.createMock(RpcController.class); in setUp()
80 TestService mockService = control.createMock(TestService.class); in testCallMethod()
103 TestService mockService = control.createMock(TestService.class); in testGetPrototype()
117 RpcChannel mockChannel = control.createMock(RpcChannel.class); in testStub()
143 BlockingRpcChannel mockChannel = control.createMock(BlockingRpcChannel.class); in testBlockingStub()
171 ServiceWithNoOuter.Interface impl = control.createMock(ServiceWithNoOuter.Interface.class); in testNewReflectiveService()
172 RpcController controller = control.createMock(RpcController.class); in testNewReflectiveService()
199 control.createMock(ServiceWithNoOuter.BlockingInterface.class); in testNewReflectiveBlockingService()
200 RpcController controller = control.createMock(RpcController.class); in testNewReflectiveBlockingService()
/external/mockftpserver/tags/2.2/src/test/java/org/mockftpserver/core/command/
DSimpleCompositeCommandHandlerTest.java261 session = (Session) createMock(Session.class); in setUp()
263 commandHandler1 = (CommandHandler) createMock(CommandHandler.class); in setUp()
264 commandHandler2 = (CommandHandler) createMock(CommandHandler.class); in setUp()
265 commandHandler3 = (CommandHandler) createMock(CommandHandler.class); in setUp()
/external/mockftpserver/tags/2.3/src/test/java/org/mockftpserver/core/command/
DSimpleCompositeCommandHandlerTest.java261 session = (Session) createMock(Session.class); in setUp()
263 commandHandler1 = (CommandHandler) createMock(CommandHandler.class); in setUp()
264 commandHandler2 = (CommandHandler) createMock(CommandHandler.class); in setUp()
265 commandHandler3 = (CommandHandler) createMock(CommandHandler.class); in setUp()
/external/mockftpserver/tags/2.0.2/src/test/java/org/mockftpserver/core/command/
DSimpleCompositeCommandHandlerTest.java261 session = (Session) createMock(Session.class); in setUp()
263 commandHandler1 = (CommandHandler) createMock(CommandHandler.class); in setUp()
264 commandHandler2 = (CommandHandler) createMock(CommandHandler.class); in setUp()
265 commandHandler3 = (CommandHandler) createMock(CommandHandler.class); in setUp()
/external/mockftpserver/tags/1.2.2/src/test/java/org/mockftpserver/core/command/
DSimpleCompositeCommandHandlerTest.java265 session = (Session) createMock(Session.class); in setUp()
267 commandHandler1 = (CommandHandler) createMock(CommandHandler.class); in setUp()
268 commandHandler2 = (CommandHandler) createMock(CommandHandler.class); in setUp()
269 commandHandler3 = (CommandHandler) createMock(CommandHandler.class); in setUp()

123456789