4748495051525354
answers.add(new ThrowsException(toBeThrown)); return this; } public Stubber doThrow(Class<? extends Throwable> toBeThrown) { answers.add(new ThrowsExceptionClass(toBeThrown)); return this; }
46474849505152
} return stubbing; } private OngoingStubbing<T> thenThrow(Class<? extends Throwable> throwableClass) { return thenAnswer(new ThrowsExceptionClass(throwableClass)); }
48495051525354
4647484950515253
45464748495051