From 37532ccdd515e1c7e9aa20581af54ff780af338f Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Thu, 11 Dec 2003 10:31:22 +0000 Subject: INTEGRATION: CWS qadev14 (1.8.2); FILE MERGED 2003/12/03 12:32:16 sg 1.8.2.1: #114147#CHG: merge errors --- qadevOOo/runner/complexlib/ComplexTestCase.java | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'qadevOOo/runner/complexlib') 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); + } + + } } -- cgit