Kaydet (Commit) 230dea5b authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS qadev22 (1.10.8); FILE MERGED

2005/03/10 16:22:02 sw 1.10.8.1: i44711
üst 2aa55de4
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: ComplexTestCase.java,v $ * $RCSfile: ComplexTestCase.java,v $
* *
* $Revision: 1.10 $ * $Revision: 1.11 $
* *
* last change: $Date: 2005-02-02 13:55:31 $ * last change: $Date: 2005-03-29 11:52:34 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
package complexlib; package complexlib;
import java.lang.Class;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import share.DescEntry; import share.DescEntry;
import lib.TestParameters; import lib.TestParameters;
...@@ -112,8 +113,8 @@ public abstract class ComplexTestCase implements ComplexTest { ...@@ -112,8 +113,8 @@ public abstract class ComplexTestCase implements ComplexTest {
// start with the before() method // start with the before() method
boolean beforeWorked = true; boolean beforeWorked = true;
try { try {
Method before = this.getClass().getMethod("before",null); Method before = this.getClass().getMethod("before",new Class[]{});
before.invoke(this, null); before.invoke(this, new Object[]{});
} }
catch(java.lang.NoSuchMethodException e) { catch(java.lang.NoSuchMethodException e) {
// simply ignore // simply ignore
...@@ -153,7 +154,7 @@ public abstract class ComplexTestCase implements ComplexTest { ...@@ -153,7 +154,7 @@ public abstract class ComplexTestCase implements ComplexTest {
Method testMethod = null; Method testMethod = null;
try { try {
testMethod = this.getClass().getMethod( testMethod = this.getClass().getMethod(
subEntry.entryName,null); subEntry.entryName, new Class[]{});
MethodThread th = new MethodThread(testMethod, this, MethodThread th = new MethodThread(testMethod, this,
(java.io.PrintWriter)log); (java.io.PrintWriter)log);
log.println("Starting " + testMethod.getName()); log.println("Starting " + testMethod.getName());
...@@ -235,8 +236,8 @@ public abstract class ComplexTestCase implements ComplexTest { ...@@ -235,8 +236,8 @@ public abstract class ComplexTestCase implements ComplexTest {
if (beforeWorked) { if (beforeWorked) {
// the after() method // the after() method
try { try {
Method after = this.getClass().getMethod("after",null); Method after = this.getClass().getMethod("after", new Class[]{});
after.invoke(this, null); after.invoke(this, new Object[]{});
} }
catch(java.lang.NoSuchMethodException e) { catch(java.lang.NoSuchMethodException e) {
// simply ignore // simply ignore
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment