-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Currently, if you write a test with an annotation like @Test(expected = NullPointerException.class) your test will correctly succeed if a NPE is thrown, however, it will incorrectly succeed if no NPE is thrown.
It might also be worth having someone verify that the @BeforeClass @Before, @Test, @After @AfterClass logic is correct when exceptions are thrown in one or more of these stages. This is all being handled correctly when nothing goes wrong, but it might not be when something does go wrong.
Note: all of this is very low priority considering that no one is writing any tests expecting exceptions (that would be very questionable anyway since we are doing full-scale integration tests here...) and no tests are making use of before's and after's either.