Home
last modified time | relevance | path

Searched refs:MockHandler (Results 1 – 25 of 40) sorted by relevance

12

/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DHandlerTest.java73 MockHandler h = new MockHandler(); in testConstructor()
100 MockHandler h = new MockHandler(); in testConstructor_Properties()
113 MockHandler h = new MockHandler(); in testClose()
121 MockHandler h = new MockHandler(); in testFlush()
129 MockHandler h = new MockHandler(); in testPublish()
137 MockHandler h = new MockHandler(); in testGetSetEncoding_Normal()
146 MockHandler h = new MockHandler(); in testGetSetEncoding_Null()
155 MockHandler h = new MockHandler(); in testGetSetEncoding_Unsupported()
168 MockHandler h = new MockHandler(); in testGetSetErrorManager_Normal()
178 MockHandler h = new MockHandler(); in testGetSetErrorManager_Null()
[all …]
DLoggerTest.java77 sharedLogger.addHandler(new MockHandler()); in setUp()
340 pLog.addHandler(new MockHandler()); in testGetLogger_WithParentNormal()
540 pLog.addHandler(new MockHandler()); in testGetLoggerWithRes_WithParentNormal()
567 MockHandler h = new MockHandler(); in testAddHandler_NamedLoggerSufficientPrivilege()
581 MockHandler h = new MockHandler(); in testAddHandler_NamedLoggerSufficientPrivilegeDuplicate()
609 MockHandler h = new MockHandler(); in testAddHandler_AnonyLoggerSufficientPrivilege()
623 MockHandler h = new MockHandler(); in testRemoveHandler_NamedLoggerSufficientPrivilege()
637 MockHandler h = new MockHandler(); in testRemoveHandler_NamedLoggerSufficientPrivilegeNotExisting()
658 MockHandler h = new MockHandler(); in testRemoveHandler_AnonyLoggerSufficientPrivilege()
679 MockHandler h1 = new MockHandler(); in testGetHandlers_Several()
[all …]
/external/mockito/src/main/java/org/mockito/internal/handler/
DMockHandlerFactory.java7 import org.mockito.invocation.MockHandler;
15 public static <T> MockHandler<T> createMockHandler(MockCreationSettings<T> settings) { in createMockHandler()
16 MockHandler<T> handler = new MockHandlerImpl<T>(settings); in createMockHandler()
17 MockHandler<T> nullResultGuardian = new NullResultGuardian<T>(handler); in createMockHandler()
DNullResultGuardian.java9 import org.mockito.invocation.MockHandler;
19 class NullResultGuardian<T> implements MockHandler<T> {
21 private final MockHandler<T> delegate;
23 public NullResultGuardian(MockHandler<T> delegate) { in NullResultGuardian()
DInvocationNotifierHandler.java9 import org.mockito.invocation.MockHandler;
23 class InvocationNotifierHandler<T> implements MockHandler<T> {
26 private final MockHandler<T> mockHandler;
28 public InvocationNotifierHandler(MockHandler<T> mockHandler, MockCreationSettings<T> settings) { in InvocationNotifierHandler()
/external/dexmaker/dexmaker-mockito/src/main/java/com/android/dx/mockito/
DInvocationHandlerAdapter.java23 import org.mockito.invocation.MockHandler;
35 private MockHandler handler;
37 public InvocationHandlerAdapter(MockHandler handler) { in InvocationHandlerAdapter()
62 public MockHandler getHandler() {
66 public void setHandler(MockHandler handler) {
DDexmakerMockMaker.java23 import org.mockito.invocation.MockHandler;
83 public <T> T createMock(MockCreationSettings<T> settings, MockHandler handler) { in createMock()
127 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()
156 public MockHandler getHandler(Object mock) {
/external/mockito/src/main/java/org/mockito/plugins/
DMockMaker.java8 import org.mockito.invocation.MockHandler;
69 MockHandler handler in createMock()
82 MockHandler getHandler(Object mock); in getHandler()
100 MockHandler newHandler, in resetMock()
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DMockMakerMultiplexer.java21 import org.mockito.invocation.MockHandler;
62 public <T> T createMock(MockCreationSettings<T> settings, MockHandler handler) { in createMock()
75 public MockHandler getHandler(Object mock) { in getHandler()
77 MockHandler handler = mockMaker.getHandler(mock); in getHandler()
88 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()
DInvocationHandlerAdapter.java23 import org.mockito.invocation.MockHandler;
36 private MockHandler handler;
38 InvocationHandlerAdapter(MockHandler handler) { in InvocationHandlerAdapter()
127 MockHandler getHandler() {
134 void setHandler(MockHandler handler) {
/external/pdfium/core/fxcrt/xml/
Dcfx_saxreader_unittest.cpp17 class MockHandler : public CFX_SAXReader::HandlerIface { class
79 MockHandler mock; in TEST_F()
88 MockHandler mock; in TEST_F()
99 MockHandler mock; in TEST_F()
112 MockHandler mock; in TEST_F()
124 MockHandler mock; in TEST_F()
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DByteBuddyMockMaker.java8 import org.mockito.invocation.MockHandler;
24 public <T> T createMock(MockCreationSettings<T> settings, MockHandler handler) { in createMock()
34 public MockHandler getHandler(Object mock) { in getHandler()
39 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()
DSubclassByteBuddyMockMaker.java11 import org.mockito.invocation.MockHandler;
41 public <T> T createMock(MockCreationSettings<T> settings, MockHandler handler) { in createMock()
129 public MockHandler getHandler(Object mock) { in getHandler()
137 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()
DMockMethodInterceptor.java19 import org.mockito.invocation.MockHandler;
33 final MockHandler handler;
39 public MockMethodInterceptor(MockHandler handler, MockCreationSettings mockCreationSettings) { in MockMethodInterceptor()
66 public MockHandler getMockHandler() { in getMockHandler()
DInlineByteBuddyMockMaker.java15 import org.mockito.invocation.MockHandler;
180 public <T> T createMock(MockCreationSettings<T> settings, MockHandler handler) { in createMock()
260 public MockHandler getHandler(Object mock) { in getHandler()
270 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DAbstractByteBuddyMockMakerTest.java15 import org.mockito.invocation.MockHandler;
74 MockHandler handlerOne = mockMaker.getHandler(mockOne); in should_mocks_have_different_interceptors()
75 MockHandler handlerTwo = mockMaker.getHandler(mockTwo); in should_mocks_have_different_interceptors()
101 MockHandler handlerOne = mockMaker.getHandler(proxy); in should_allow_serialization()
102 MockHandler handlerTwo = mockMaker.getHandler(serialized); in should_allow_serialization()
119 MockHandler handler = new MockHandlerImpl<SampleClass>(settings); in should_reset_mock_and_set_new_handler()
184 protected static MockHandler dummyHandler() { in dummyHandler()
188 private static class DummyMockHandler implements MockHandler<Object> {
/external/mockito/subprojects/android/src/main/java/org/mockito/android/internal/creation/
DAndroidByteBuddyMockMaker.java10 import org.mockito.invocation.MockHandler;
38 public <T> T createMock(MockCreationSettings<T> settings, MockHandler handler) { in createMock()
43 public MockHandler getHandler(Object mock) { in getHandler()
48 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()
/external/mockito/src/main/java/org/mockito/internal/util/
DMockUtil.java13 import org.mockito.invocation.MockHandler;
33 MockHandler mockHandler = createMockHandler(settings); in createMock()
46 MockHandler oldHandler = getMockHandler(mock); in resetMock()
48 MockHandler newHandler = createMockHandler(settings); in resetMock()
53 public static <T> MockHandler<T> getMockHandler(T mock) { in getMockHandler()
DDefaultMockingDetails.java12 import org.mockito.invocation.MockHandler;
67 public MockHandler getMockHandler() { in getMockHandler()
76 private MockHandler<Object> mockHandler() { in mockHandler()
/external/slf4j/slf4j-jdk14/src/test/java/org/slf4j/impl/
DJDK14AdapterLoggerNameTest.java34 private MockHandler mockHandler;
39 mockHandler = new MockHandler(); in setUp()
75 private class MockHandler extends java.util.logging.Handler { class in JDK14AdapterLoggerNameTest
/external/mockito/src/test/java/org/mockito/internal/handler/
DMockHandlerFactoryTest.java12 import org.mockito.invocation.MockHandler;
33 MockHandler<?> handler = createMockHandler(settings); in handle_result_must_not_be_null_for_primitives()
51 MockHandler<?> handler = createMockHandler(settings); in valid_handle_result_is_permitted()
/external/mockito/src/main/java/org/mockito/internal/
DInternalMockHandler.java7 import org.mockito.invocation.MockHandler;
20 public interface InternalMockHandler<T> extends MockHandler {}
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/
DInlineStaticMockMaker.java24 import org.mockito.invocation.MockHandler;
138 public <T> T createMock(MockCreationSettings<T> settings, MockHandler handler) { in createMock()
171 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()
216 public MockHandler getHandler(Object mock) {
/external/apache-harmony/logging/src/test/resources/config/com/android/java/util/logging/
Dlogging.config1 handlers=com.android.org.apache.harmony.logging.tests.java.util.logging.LogManagerTest$MockHandler
3 com.android.org.apache.harmony.logging.tests.java.util.logging.LogManagerTest$MockHandler.level=OFF
/external/mockito/src/main/java/org/mockito/
DMockingDetails.java8 import org.mockito.invocation.MockHandler;
123 MockHandler getMockHandler(); in getMockHandler()

12