Hi,
> Usually I do something like that:
>
> when(mock.foo()).thenThrow(exc);
>
> try {
> system.doStuff();
> fail();} catch(SomeSpecificException e) {
>
> //you can assert the exception here - if it makes sense
>
> }
Thanks for suggestion.
I just was expecting something like:
Foo foo = spy(this.foo);
verifyThrows(foo.test(), RuntimeException.class);
Anyway, I guess this is responsibility of testing framework, not
Mockito.
Domas