summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/complexlib
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2003-12-11 10:31:22 +0000
committerKurt Zenker <kz@openoffice.org>2003-12-11 10:31:22 +0000
commit37532ccdd515e1c7e9aa20581af54ff780af338f (patch)
tree2b2a4c12181c5b6b047fb46b0d105487ebe1979e /qadevOOo/runner/complexlib
parent6a3fa5f2adb94d04245e443ad5b1532fb53f328f (diff)
INTEGRATION: CWS qadev14 (1.8.2); FILE MERGED
2003/12/03 12:32:16 sg 1.8.2.1: #114147#CHG: merge errors
Diffstat (limited to 'qadevOOo/runner/complexlib')
-rw-r--r--qadevOOo/runner/complexlib/ComplexTestCase.java21
1 files changed, 14 insertions, 7 deletions
diff --git a/qadevOOo/runner/complexlib/ComplexTestCase.java b/qadevOOo/runner/complexlib/ComplexTestCase.java
index 0e58150eb33a..7cba01b4cf95 100644
--- a/qadevOOo/runner/complexlib/ComplexTestCase.java
+++ b/qadevOOo/runner/complexlib/ComplexTestCase.java
@@ -2,9 +2,9 @@
*
* $RCSfile: ComplexTestCase.java,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Date: 2003-11-18 16:13:44 $
+ * last change: $Date: 2003-12-11 11:31:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -156,6 +156,7 @@ public abstract class ComplexTestCase implements ComplexTest {
subEntry.entryName,null);
MethodThread th = new MethodThread(testMethod, this,
(java.io.PrintWriter)log);
+ log.println("Starting " + testMethod.getName());
th.start();
try {
int sleepingStep = 1000;
@@ -177,11 +178,9 @@ public abstract class ComplexTestCase implements ComplexTest {
subEntry.ErrorMsg = subEntry.State;
continue;
} else {
- System.out.println("Finished " + testMethod.getName());
+ log.println("Finished " + testMethod.getName());
if (th.hasErrorMessage()) {
- subEntry.State="Test did sleep for " +
- (mThreadTimeOut / 1000) +
- " seconds and has been killed!";
+ subEntry.State=th.getErrorMessage();
subEntry.hasErrorMsg = true;
subEntry.ErrorMsg = subEntry.State;
continue;
@@ -300,7 +299,7 @@ public abstract class ComplexTestCase implements ComplexTest {
message += msg + "\r\n";
log.println(msg);
if (!cont) {
- throw new RuntimeException(msg);
+ throw new AssureException(msg);
}
}
}
@@ -328,6 +327,14 @@ public abstract class ComplexTestCase implements ComplexTest {
this.message += msg + "\r\n";
log.println(msg);
}
+
+
+ public class AssureException extends RuntimeException {
+ public AssureException(String msg) {
+ super(msg);
+ }
+
+ }
}