Re: Make tearDown() aware of exceptions.
Tuesday, January 17, 2006 02:38 PM
I have done work on JUnit 2 yrs ago.
I hope before execute every test Case setUp() will called and after completion of test case tearDown() will call.
If your test case throws the exception, then you can set a flag that tells you that exception is thrown.
And check this flag in tearDown().
Hope it will solve your problem.