/external/easymock/src/org/easymock/ |
D | EasyMockSupport.java | 42 public <T> T createStrictMock(Class<T> toMock) { in createStrictMock() argument 43 return createStrictControl().createMock(toMock); in createStrictMock() 61 public <T> T createStrictMock(String name, Class<T> toMock) { in createStrictMock() argument 62 return createStrictControl().createMock(name, toMock); in createStrictMock() 76 public <T> T createMock(Class<T> toMock) { in createMock() argument 77 return createControl().createMock(toMock); in createMock() 96 public <T> T createMock(String name, Class<T> toMock) { in createMock() argument 97 return createControl().createMock(name, toMock); in createMock() 112 public <T> T createNiceMock(Class<T> toMock) { in createNiceMock() argument 113 return createNiceControl().createMock(toMock); in createNiceMock() [all …]
|
D | MockControl.java | 42 protected MockControl(MocksControl ctrl, Class<T> toMock) { in MockControl() argument 44 this.mock = ctrl.createMock(toMock); in MockControl() 58 public static <T> MockControl<T> createControl(Class<T> toMock) { in createControl() argument 60 toMock); in createControl() 74 public static <T> MockControl<T> createStrictControl(Class<T> toMock) { in createStrictControl() argument 76 (MocksControl) EasyMock.createStrictControl(), toMock); in createStrictControl() 90 public static <T> MockControl<T> createNiceControl(Class<T> toMock) { in createNiceControl() argument 92 toMock); in createNiceControl()
|
D | EasyMock.java | 54 public static <T> T createStrictMock(Class<T> toMock) { in createStrictMock() argument 55 return createStrictControl().createMock(toMock); in createStrictMock() 70 public static <T> T createStrictMock(String name, Class<T> toMock) { in createStrictMock() argument 71 return createStrictControl().createMock(name, toMock); in createStrictMock() 85 public static <T> T createMock(Class<T> toMock) { in createMock() argument 86 return createControl().createMock(toMock); in createMock() 102 public static <T> T createMock(String name, Class<T> toMock) { in createMock() argument 103 return createControl().createMock(name, toMock); in createMock() 118 public static <T> T createNiceMock(Class<T> toMock) { in createNiceMock() argument 119 return createNiceControl().createMock(toMock); in createNiceMock() [all …]
|
D | IMocksControl.java | 29 <T> T createMock(Class<T> toMock); in createMock() argument 39 <T> T createMock(String name, Class<T> toMock); in createMock() argument
|
/external/easymock/src/org/easymock/internal/ |
D | ObjectMethodsFilter.java | 38 public ObjectMethodsFilter(Class<?> toMock, MockInvocationHandler delegate, in ObjectMethodsFilter() argument 45 if (toMock.isInterface()) { in ObjectMethodsFilter() 46 toMock = Object.class; in ObjectMethodsFilter() 48 equalsMethod = toMock.getMethod("equals", in ObjectMethodsFilter() 50 hashCodeMethod = toMock.getMethod("hashCode", (Class[]) null); in ObjectMethodsFilter() 51 toStringMethod = toMock.getMethod("toString", (Class[]) null); in ObjectMethodsFilter()
|
D | MocksControl.java | 47 public <T> T createMock(Class<T> toMock) { in createMock() argument 50 IProxyFactory<T> proxyFactory = createProxyFactory(toMock); in createMock() 51 return proxyFactory.createProxy(toMock, new ObjectMethodsFilter( in createMock() 52 toMock, new MockInvocationHandler(this), null)); in createMock() 58 public <T> T createMock(String name, Class<T> toMock) { in createMock() argument 61 IProxyFactory<T> proxyFactory = createProxyFactory(toMock); in createMock() 62 return proxyFactory.createProxy(toMock, new ObjectMethodsFilter( in createMock() 63 toMock, new MockInvocationHandler(this), name)); in createMock() 69 protected <T> IProxyFactory<T> createProxyFactory(Class<T> toMock) { in createProxyFactory() argument
|
D | JavaProxyFactory.java | 23 public T createProxy(Class<T> toMock, InvocationHandler handler) { in createProxy() argument 24 return (T) Proxy.newProxyInstance(toMock.getClassLoader(), in createProxy() 25 new Class[] { toMock }, handler); in createProxy()
|
D | IProxyFactory.java | 21 T createProxy(Class<T> toMock, InvocationHandler handler); in createProxy() argument
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | MultithreadedStubbingHalfManualTest.java | 52 private Runnable getConflictingRunnable(final ToMock toMock) { in getConflictingRunnable() argument 60 if (!toMock.getValues(0).isEmpty()) { in getConflictingRunnable() 73 ToMock toMock = mock(ToMock.class); 78 when(toMock.getValue(i)).thenReturn(j); 85 this.executor.execute(getConflictingRunnable(toMock));
|