You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by ji...@apache.org on 2004/04/17 18:29:29 UTC
[jira] Reopened: (CACTUS-6) tearDown() not called when test method fails
Message:
The following issue has been reopened.
Reopener: Vincent Massol
Date: Sat, 17 Apr 2004 9:27 AM
reopen to change resolution
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/CACTUS-6
Here is an overview of the issue:
---------------------------------------------------------------------
Key: CACTUS-6
Summary: tearDown() not called when test method fails
Type: Bug
Status: Reopened
Project: Cactus
Components:
Framework
Fix Fors:
1.1
Assignee: Vincent Massol
Reporter: Paul Dillon
Created: Thu, 24 May 2001 7:59 PM
Updated: Sat, 17 Apr 2004 9:27 AM
Environment: Operating System: All
Platform: PC
Description:
I've extended the ServletTestCase to implement a server-side test. During each
test I create a number of database entries, and then clean them up in the
tearDown() method. When one of these test methods fails an assert, tearDown()
is not called. Subsequent tests which would otherwise pass fail due to the
unexpected records in the database.
This behaviour is different to TestCase: tearDown() is always called,
regardless of whether the test method passes.
I'm using the servlet 2.2 version of cactus, version 1.0 (dated 2-may-2001).
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org