Hi!
When I'm writing single test, it may fail() at any moment of the test.
Since I create some resources in the database in the begining of the
test, I'd like to remove them whenever the test finished (not matter
whether with success or not). Thus I'm looking for an approach like
try {
// init resources,
// test,
} finally {
// clean up resource
},
which handle with cleaning up: but for JUnit. Any idea?
Regards,
Maciej
opalpa opalpa@gmail.com http://opalpa.info - 06 Oct 2006 13:24 GMT
http://junit.sourceforge.net/javadoc/junit/framework/TestCase.html#tearDown()
opalpa
opalpa@gmail.com
http://opalpa.info/