summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/lib
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-02-19 16:01:04 +0100
committersb <sb@openoffice.org>2010-02-19 16:01:04 +0100
commit5bf30beb87fe471dc055148d49c5034a105c650e (patch)
tree4392a1f8bdebd66b94a114c97724841f6ece92eb /qadevOOo/runner/lib
parentaa4295d6356f375c7b1ab7820bed9aaf762f58bb (diff)
sb118: various improvement/cleanup of qadevOOo code
Diffstat (limited to 'qadevOOo/runner/lib')
-rw-r--r--qadevOOo/runner/lib/TestCase.java20
1 files changed, 1 insertions, 19 deletions
diff --git a/qadevOOo/runner/lib/TestCase.java b/qadevOOo/runner/lib/TestCase.java
index 353a1cee46d1..66e7f4cc5432 100644
--- a/qadevOOo/runner/lib/TestCase.java
+++ b/qadevOOo/runner/lib/TestCase.java
@@ -143,18 +143,16 @@ public abstract class TestCase {
message = e.toString();
System.out.println("Exception while getting Environment "+message);
e.printStackTrace();
+ cleanup(tParam, log);
}
return tEnv;
}
/**
* Disposes the <code>TestEnvironment</code> when it is not needed anymore.
- * The method calls <code>cleanupTestEnvironment()</code>.
*
* @param tEnv the environment to dispose
* @param tParam test parameters
- *
- * @see #cleanupTestEnvironment()
*/
public synchronized void disposeTestEnvironment( TestEnvironment tEnv,
TestParameters tParam ) {
@@ -177,22 +175,6 @@ public abstract class TestCase {
TestParameters tParam, PrintWriter log );
/**
- * Called while disposing a <code>TestEnvironment</code>. In the
- * implementation does nothing. Subclasses can override to clean up
- * the environments created by them.
- *
- * @param tParam test parameters
- * @param tEnv the environment to cleanup
- * @param log writer to log information while testing
- *
- * @see TestEnvironment
- * @see #disposeTestEnvironment()
- */
- protected void cleanupTestEnvironment( TestParameters Param,
- TestEnvironment tEnv, PrintWriter log ) {
- }
-
- /**
* @return the name of the object
*/
public String getObjectName() {