You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: