Citeren Laurent Duperval <[EMAIL PROTECTED]>:

> Hi,
> 
> This is a jUnit, more than a jWebUnit question: Is there a way to tell a 
> test case not to run tearDown() if the test case failed?

No, as this would not be symmetrical: normally one would allocate resources
(like a database connection) in the setUp(). These resources would not be freed
if the tearDown wasn't called.

If you wish to emulate such behaviour, my best shot would be to create a new
method leave() and call that method at the end of each test. 

Martijn


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Jwebunit-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to