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:17:31 UTC

[jira] Closed: (CACTUS-20) inherited beginXXX() and endXXX() not run on client

Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/CACTUS-20

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: CACTUS-20
    Summary: inherited beginXXX() and endXXX() not run on client
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Cactus
 Components: 
             Framework
   Fix Fors:
             1.3

   Assignee: Vincent Massol
   Reporter: Stéphane Zermatten

    Created: Mon, 15 Apr 2002 9:46 AM
    Updated: Sat, 17 Apr 2004 9:16 AM
Environment: Operating System: All
Platform: All

Description:
I wrote an abstract cactus test case with a test method and two begin and end.
Then I extended this class and ran it. 

The problem is that the begin and end methods are not run if they are not
defined on the final class; this is not consistent with junit. The testXXX()
methods are always run, even if they are inherited (which is really useful). 

I propose to replace getDeclaredMethods() by getMethods() in
AbstractTestCase#callEndMethod/AbstractTestCase#callBeginMethod.

(attached is the base test case and extension I described; it could be used as a
skeleton test case for this bug...)


---------------------------------------------------------------------
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