vmassol 02/04/16 14:16:13
Modified: framework/src/java/share/org/apache/cactus
AbstractTestCase.java
Log:
use getMethods() instead of getDeclaredMethods() as suggested by St�phane Zermatten
([EMAIL PROTECTED]) in order to be able to inherit XXXTestCase and be more
compliant with JUnit behaviour.
Revision Changes Path
1.3 +3 -3
jakarta-cactus/framework/src/java/share/org/apache/cactus/AbstractTestCase.java
Index: AbstractTestCase.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/framework/src/java/share/org/apache/cactus/AbstractTestCase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AbstractTestCase.java 14 Apr 2002 10:46:25 -0000 1.2
+++ AbstractTestCase.java 16 Apr 2002 21:16:13 -0000 1.3
@@ -78,7 +78,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Vincent Massol</a>
*
- * @version $Id: AbstractTestCase.java,v 1.2 2002/04/14 10:46:25 vmassol Exp $
+ * @version $Id: AbstractTestCase.java,v 1.3 2002/04/16 21:16:13 vmassol Exp $
*/
public abstract class AbstractTestCase extends TestCase
{
@@ -186,7 +186,7 @@
{
// First, verify if a begin method exist. If one is found, verify if
// it has the correct signature. If not, send a warning.
- Method[] methods = getClass().getDeclaredMethods();
+ Method[] methods = getClass().getMethods();
for (int i = 0; i < methods.length; i++) {
if (methods[i].getName().equals(getBeginMethodName())) {
@@ -259,7 +259,7 @@
Method methodToCall = null;
Object paramObject = null;
- Method[] methods = getClass().getDeclaredMethods();
+ Method[] methods = getClass().getMethods();
for (int i = 0; i < methods.length; i++) {
if (methods[i].getName().equals(getEndMethodName())) {
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>