@Override public synchronized Throwable fillInStackTrace() { return TRACE_CANCEL ? super.fillInStackTrace() : this; } }
@Override public synchronized Throwable fillInStackTrace() { return TRACE_NOCAPACITY ? super.fillInStackTrace() : this; } }
@Override public E next() { ex.fillInStackTrace(); throw ex; }
public void setDataSource(DataSource dataSource) { RuntimeException e = exceptions.get(dataSource); if (e != null) { e.fillInStackTrace(); throw e; } this.dataSource = dataSource; }
@Override public void remove() { ex.fillInStackTrace(); throw ex; } }
@Override public IExpectationSetters<Object> andReturn(Object value) { try { state.andReturn(value); return this; } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public void andStubDelegateTo(Object delegateTo) { try { state.andStubDelegateTo(delegateTo); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public IExpectationSetters<Object> anyTimes() { try { state.times(ZERO_OR_MORE); return this; } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public void checkOrder(boolean value) { try { state.checkOrder(value); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public IExpectationSetters<Object> andAnswer(IAnswer<?> answer) { try { state.andAnswer(answer); return this; } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public void andStubReturn(Object value) { try { state.andStubReturn(value); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public void makeThreadSafe(boolean threadSafe) { try { state.makeThreadSafe(threadSafe); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public IExpectationSetters<Object> andDelegateTo(Object answer) { try { state.andDelegateTo(answer); return this; } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public IExpectationSetters<Object> andVoid() { try { state.andVoid(); return this; } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public IExpectationSetters<Object> once() { try { state.times(ONCE); return this; } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public void andStubAnswer(IAnswer<?> answer) { try { state.andStubAnswer(answer); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public IExpectationSetters<Object> times(int times) { try { state.times(new Range(times)); return this; } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public void verify() { try { state.verify(); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } catch (AssertionErrorWrapper e) { throw (AssertionError) e.getAssertionError().fillInStackTrace(); } }
@Override public void replay() { try { state.replay(); state = new ReplayState(behavior); LastControl.reportLastControl(null); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } }
@Override public void verifyRecording() { try { state.verifyRecording(); } catch (RuntimeExceptionWrapper e) { throw (RuntimeException) e.getRuntimeException().fillInStackTrace(); } catch (AssertionErrorWrapper e) { throw (AssertionError) e.getAssertionError().fillInStackTrace(); } }