2007-02-20

JUnit Tear-down Assertions

In JUnit 4.1, if an assertion failure occurs in a tear-down method it will mask any failure that occurred in the test case itself.  There is no real work-around for this problem other than commenting out the assertion in the tear-down method.