Wednesday, February 18, 2004 12:41 AM
I'm trying to execute a class with 2 test methods. In the first method, I'm setting the value of a member variable. In the other method, I'm using that value.
However, the 2nd test fails as though the particular member was never set (NullPointerException). Does JUnit reset member variables to null between tests?
If so, can I disable it?
Could there be any other reason why the 2nd test fails?