aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/common/test/TestSuite.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cz/crcs/ectester/common/test/TestSuite.java')
-rw-r--r--src/cz/crcs/ectester/common/test/TestSuite.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cz/crcs/ectester/common/test/TestSuite.java b/src/cz/crcs/ectester/common/test/TestSuite.java
index f4f30ee..5bcee85 100644
--- a/src/cz/crcs/ectester/common/test/TestSuite.java
+++ b/src/cz/crcs/ectester/common/test/TestSuite.java
@@ -32,11 +32,23 @@ public abstract class TestSuite {
writer.end();
}
+ /**
+ * Run the given test and return it back.
+ * @param t The test to run.
+ * @return The test that was run.
+ * @throws TestException
+ */
protected Test runTest(Test t) throws TestException {
t.run();
return t;
}
+ /**
+ * Run the given test, output it and return it back.
+ * @param t The test to run.
+ * @return The test that was run.
+ * @throws TestException
+ */
protected Test doTest(Test t) throws TestException {
t.run();
writer.outputTest(t);