Home
last modified time | relevance | path

Searched refs:MocksControl (Results 1 – 6 of 6) sorted by relevance

/external/easymock/src/org/easymock/
DMockControl.java40 private final MocksControl ctrl;
42 protected MockControl(MocksControl ctrl, Class<T> toMock) { in MockControl()
59 return new MockControl<T>((MocksControl) EasyMock.createControl(), in createControl()
76 (MocksControl) EasyMock.createStrictControl(), toMock); in createStrictControl()
91 return new MockControl<T>((MocksControl) EasyMock.createNiceControl(), in createNiceControl()
278 …((MocksControl) expectLastCall("method call on the mock needed before setting default void callabl… in setDefaultVoidCallable()
414 public static final Range ONE = MocksControl.ONCE;
419 public static final Range ONE_OR_MORE = MocksControl.AT_LEAST_ONCE;
424 public static final Range ZERO_OR_MORE = MocksControl.ZERO_OR_MORE;
DEasyMock.java146 return new MocksControl(MocksControl.MockType.STRICT); in createStrictControl()
155 return new MocksControl(MocksControl.MockType.DEFAULT); in createControl()
166 return new MocksControl(MocksControl.MockType.NICE); in createNiceControl()
200 MocksControl lastControl = LastControl.lastControl(); in getControlForLastCall()
1644 private static MocksControl getControl(Object mock) { in getControl()
/external/easymock/src/org/easymock/internal/
DRecordState.java98 times(MocksControl.ONCE); in andReturn()
107 times(MocksControl.ONCE); in andThrow()
116 times(MocksControl.ONCE); in andAnswer()
125 times(MocksControl.ONCE); in andDelegateTo()
135 times(MocksControl.ONCE); in andStubReturn()
147 times(MocksControl.ONCE); in setDefaultReturnValue()
176 times(MocksControl.ONCE); in andStubThrow()
187 times(MocksControl.ONCE); in setDefaultThrowable()
199 times(MocksControl.ONCE); in andStubAnswer()
209 times(MocksControl.ONCE); in andStubDelegateTo()
DMockInvocationHandler.java26 private final MocksControl control;
28 public MockInvocationHandler(MocksControl control) { in MockInvocationHandler()
51 public MocksControl getControl() { in getControl()
DLastControl.java29 … private static final ThreadLocal<MocksControl> threadToControl = new ThreadLocal<MocksControl>();
35 public static void reportLastControl(MocksControl control) { in reportLastControl()
43 public static MocksControl lastControl() { in lastControl()
DMocksControl.java24 public class MocksControl implements IMocksControl, IExpectationSetters<Object>, Serializable { class
38 public MocksControl(MockType type) { in MocksControl() method in MocksControl