aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/standalone/test/base/StandaloneTestable.java
diff options
context:
space:
mode:
authorJ08nY2018-05-28 21:45:19 +0200
committerJ08nY2018-05-28 21:45:19 +0200
commit298ffc18e590d07eb04d2c5c2b1d553f8fba71bd (patch)
tree3eccc379deb68a920951cc29c7bcb17368933fde /src/cz/crcs/ectester/standalone/test/base/StandaloneTestable.java
parenta4e52b21b1dad5f96df409c44e5b4d611bba01b9 (diff)
downloadECTester-298ffc18e590d07eb04d2c5c2b1d553f8fba71bd.tar.gz
ECTester-298ffc18e590d07eb04d2c5c2b1d553f8fba71bd.tar.zst
ECTester-298ffc18e590d07eb04d2c5c2b1d553f8fba71bd.zip
Implement tracking and writing of exceptions in standalone tests.
Diffstat (limited to '')
-rw-r--r--src/cz/crcs/ectester/standalone/test/base/StandaloneTestable.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cz/crcs/ectester/standalone/test/base/StandaloneTestable.java b/src/cz/crcs/ectester/standalone/test/base/StandaloneTestable.java
index 8654e94..47bffc1 100644
--- a/src/cz/crcs/ectester/standalone/test/base/StandaloneTestable.java
+++ b/src/cz/crcs/ectester/standalone/test/base/StandaloneTestable.java
@@ -7,8 +7,19 @@ import cz.crcs.ectester.common.test.BaseTestable;
*/
public abstract class StandaloneTestable<T extends Enum<T>> extends BaseTestable {
protected T stage;
+ protected Exception exception;
public T getStage() {
return stage;
}
+
+ public Exception getException() {
+ return exception;
+ }
+
+ protected void failOnException(Exception ex) {
+ ok = false;
+ hasRun = true;
+ exception = ex;
+ }
}