public void setLegacyDefaultReturnValue(Object value) { try { state.setDefaultReturnValue(value); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public void andStubDelegateTo(Object delegateTo) { try { state.andStubDelegateTo(delegateTo); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public void checkOrder(boolean value) { try { state.checkOrder(value); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public void andStubThrow(Throwable throwable) { try { state.andStubThrow(throwable); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public void andStubAnswer(IAnswer<? extends Object> answer) { try { state.andStubAnswer(answer); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public void checkIsUsedInOneThread(boolean shouldBeUsedInOneThread) { try { state.checkIsUsedInOneThread(shouldBeUsedInOneThread); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public void andStubReturn(Object value) { try { state.andStubReturn(value); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public void makeThreadSafe(boolean threadSafe) { try { state.makeThreadSafe(threadSafe); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public void setLegacyDefaultThrowable(Throwable throwable) { try { state.setDefaultThrowable(throwable); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public void asStub() { try { state.asStub(); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@SuppressWarnings("deprecation") public void setLegacyMatcher(org.easymock.ArgumentsMatcher matcher) { try { state.setMatcher(null, matcher); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public IExpectationSetters<Object> anyTimes() { try { state.times(ZERO_OR_MORE); return this; } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public IExpectationSetters<Object> atLeastOnce() { try { state.times(AT_LEAST_ONCE); return this; } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public IExpectationSetters<Object> times(int min, int max) { try { state.times(new Range(min, max)); return this; } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public IExpectationSetters<Object> andDelegateTo(Object answer) { try { state.andDelegateTo(answer); return this; } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public IExpectationSetters<Object> andThrow(Throwable throwable) { try { state.andThrow(throwable); return this; } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public void replay() { try { state.replay(); state = new ReplayState(behavior); LastControl.reportLastControl(null); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public void verify() { try { state.verify(); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } catch (AssertionErrorWrapper e) { throw (AssertionError) e.getAssertionError().fillInStackTrace(); } }
public <T> T createMock(String name, Class<T> toMock) { try { state.assertRecordState(); IProxyFactory<T> proxyFactory = createProxyFactory(toMock); return proxyFactory.createProxy( toMock, new ObjectMethodsFilter(toMock, new MockInvocationHandler(this), name)); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
public void setLegacyDefaultVoidCallable() { state.setDefaultVoidCallable(); }