aboutsummaryrefslogtreecommitdiff
path: root/src/junit/extensions/TestDecorator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/junit/extensions/TestDecorator.java')
-rw-r--r--src/junit/extensions/TestDecorator.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/junit/extensions/TestDecorator.java b/src/junit/extensions/TestDecorator.java
index 2111e8f..d9ae474 100644
--- a/src/junit/extensions/TestDecorator.java
+++ b/src/junit/extensions/TestDecorator.java
@@ -5,11 +5,10 @@ import junit.framework.Test;
import junit.framework.TestResult;
/**
- * A Decorator for Tests. Use TestDecorator as the base class
- * for defining new test decorators. Test decorator subclasses
- * can be introduced to add behaviour before or after a test
- * is run.
- *
+ * A Decorator for Tests. Use TestDecorator as the base class for defining new
+ * test decorators. Test decorator subclasses can be introduced to add behaviour
+ * before or after a test is run.
+ *
*/
public class TestDecorator extends Assert implements Test {
protected Test fTest;
@@ -17,19 +16,23 @@ public class TestDecorator extends Assert implements Test {
public TestDecorator(Test test) {
fTest= test;
}
+
/**
* The basic run behaviour.
*/
public void basicRun(TestResult result) {
fTest.run(result);
}
+
public int countTestCases() {
return fTest.countTestCases();
}
+
public void run(TestResult result) {
basicRun(result);
}
+ @Override
public String toString() {
return fTest.toString();
}