Home
last modified time | relevance | path

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

12345678910

/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 …]
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()
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()
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()
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()
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()
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()
/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()
DEasyMock.java55 return createStrictControl().createMock(toMock); in createStrictMock()
71 return createStrictControl().createMock(name, toMock); in createStrictMock()
85 public static <T> T createMock(Class<T> toMock) { in createMock() method in EasyMock
86 return createControl().createMock(toMock); in createMock()
102 public static <T> T createMock(String name, Class<T> toMock) { in createMock() method in EasyMock
103 return createControl().createMock(name, toMock); in createMock()
119 return createNiceControl().createMock(toMock); in createNiceMock()
137 return createNiceControl().createMock(name, toMock); in createNiceMock()
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DInlineByteBuddyMockMakerTest.java46 … FinalClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<FinalClass>(settings)); in should_create_mock_from_final_class()
53 Pattern proxy = mockMaker.createMock(settings, new MockHandlerImpl<Pattern>(settings)); in should_create_mock_from_final_class_in_the_JDK()
60 …FinalMethodAbstractType proxy = mockMaker.createMock(settings, new MockHandlerImpl<FinalMethodAbst… in should_create_mock_from_abstract_class_with_final_method()
68 … FinalMethod proxy = mockMaker.createMock(settings, new MockHandlerImpl<FinalMethod>(settings)); in should_create_mock_from_final_class_with_interface_methods()
76 …GenericSubClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<GenericSubClass>(settin… in should_detect_non_overridden_generic_method_of_supertype()
83 HashMap proxy = mockMaker.createMock(settings, new MockHandlerImpl<HashMap>(settings)); in should_create_mock_from_hashmap()
92 mockMaker.createMock(settings, new MockHandlerImpl(settings)); in should_throw_exception_redefining_unmodifiable_class()
106 mockMaker.createMock(settings, new MockHandlerImpl(settings)); in should_throw_exception_redefining_array()
116 EnumClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<EnumClass>(settings)); in should_create_mock_from_enum()
127 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/core/src/test/java/com/google/protobuf/
DServiceTest.java72 mockController = control.createMock(RpcController.class); in setUp()
83 TestService mockService = control.createMock(TestService.class); in testCallMethod()
100 TestService mockService = control.createMock(TestService.class); in testGetPrototype()
118 RpcChannel mockChannel = control.createMock(RpcChannel.class); in testStub()
145 control.createMock(BlockingRpcChannel.class); in testBlockingStub()
171 control.createMock(ServiceWithNoOuter.Interface.class); in testNewReflectiveService()
172 RpcController controller = control.createMock(RpcController.class); in testNewReflectiveService()
202 control.createMock(ServiceWithNoOuter.BlockingInterface.class); in testNewReflectiveBlockingService()
203 RpcController controller = control.createMock(RpcController.class); in testNewReflectiveBlockingService()
/external/deqp/android/cts/runner/tests/src/com/drawelements/deqp/runner/
DDeqpTestRunnerTest.java139 IFolderBuildInfo mockIFolderBuildInfo = EasyMock.createMock(IFolderBuildInfo.class); in getMockBuildHelper()
217 ITestDevice mockDevice = EasyMock.createMock(ITestDevice.class); in testGlesVersion()
220 IDevice mockIDevice = EasyMock.createMock(IDevice.class); in testGlesVersion()
353 ITestDevice mockDevice = EasyMock.createMock(ITestDevice.class); in testResultCode()
356 IDevice mockIDevice = EasyMock.createMock(IDevice.class); in testResultCode()
512 ITestDevice mockDevice = EasyMock.createMock(ITestDevice.class); in testRun_multipleTests()
515 IDevice mockIDevice = EasyMock.createMock(IDevice.class); in testRun_multipleTests()
618 ITestDevice mockDevice = EasyMock.createMock(ITestDevice.class); in testFiltering()
634 IDevice mockIDevice = EasyMock.createMock(IDevice.class); in testFiltering()
839 ITestDevice mockDevice = EasyMock.createMock(ITestDevice.class); in testRun_unexecutableTests()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DForwardingMapTest.java19 import static org.easymock.EasyMock.createMock;
253 final Map<String, Boolean> map = createMock(Map.class);
255 final Set<Map.Entry<String, Boolean>> entrySet = createMock(Set.class);
290 Set<Entry<String, Boolean>> entrySet = createMock(Set.class);
295 final Map<String, Boolean> map = createMock(Map.class);
322 Set<Entry<String, Boolean>> entrySet = createMock(Set.class);
327 final Map<String, Boolean> map = createMock(Map.class);
/external/mockftpserver/branches/1.x_Branch/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()
/external/mockftpserver/tags/2.0.1/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/MockFtpServer/src/test/java/org/mockftpserver/core/command/
DSimpleCompositeCommandHandlerTest.java262 session = (Session) createMock(Session.class); in setUp()
264 commandHandler1 = (CommandHandler) createMock(CommandHandler.class); in setUp()
265 commandHandler2 = (CommandHandler) createMock(CommandHandler.class); in setUp()
266 commandHandler3 = (CommandHandler) createMock(CommandHandler.class); in setUp()
/external/mockftpserver/tags/1.0/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()

12345678910