If a before or after spec method throws an exception, it will get checked
against the expected
exception. This should not happen.
The following class will pass, but should fail, as the after spec throws an
exception, and the
expected exception from the spec method is never thrown.
class Foo {
void after() {
throw new RuntimeException();
}
@Specification(expected = RuntimeException.class)
void spec() {
}
}
Original issue reported on code.google.com by tomjad...@gmail.com on 4 Dec 2007 at 6:04
Original issue reported on code.google.com by
tomjad...@gmail.com
on 4 Dec 2007 at 6:04