aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web-status/src/main/java/at/gv/egiz/status/impl/TestRunResult.java
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web-status/src/main/java/at/gv/egiz/status/impl/TestRunResult.java')
-rw-r--r--pdf-as-web-status/src/main/java/at/gv/egiz/status/impl/TestRunResult.java88
1 files changed, 88 insertions, 0 deletions
diff --git a/pdf-as-web-status/src/main/java/at/gv/egiz/status/impl/TestRunResult.java b/pdf-as-web-status/src/main/java/at/gv/egiz/status/impl/TestRunResult.java
new file mode 100644
index 00000000..9385392c
--- /dev/null
+++ b/pdf-as-web-status/src/main/java/at/gv/egiz/status/impl/TestRunResult.java
@@ -0,0 +1,88 @@
+package at.gv.egiz.status.impl;
+
+import at.gv.egiz.status.TestResult;
+
+/**
+ * The Class TestRunResult.
+ */
+public class TestRunResult {
+
+ /** The test result. */
+ private TestResult testResult;
+
+ /** The execution timestamp. */
+ private long executionTimestamp;
+
+ /**
+ * Instantiates a new test run result.
+ */
+ public TestRunResult() {
+ this.init(null, 0);
+ }
+
+ /**
+ * Instantiates a new test run result.
+ *
+ * @param testResult the test result
+ */
+ public TestRunResult(TestResult testResult) {
+ this.init(testResult, 0);
+ }
+
+ /**
+ * Instantiates a new test run result.
+ *
+ * @param testResult the test result
+ * @param executionTimestamp the execution timestamp
+ */
+ public TestRunResult(TestResult testResult, long executionTimestamp) {
+ this.init(testResult, executionTimestamp);
+ }
+
+ /**
+ * Inits the.
+ *
+ * @param testResult the test result
+ * @param executionTimestamp the execution timestamp
+ */
+ private void init(TestResult testResult, long executionTimestamp) {
+ this.testResult = testResult;
+ this.executionTimestamp = executionTimestamp;
+ }
+
+ /**
+ * Gets the test result.
+ *
+ * @return the test result
+ */
+ public TestResult getTestResult() {
+ return testResult;
+ }
+
+ /**
+ * Sets the test result.
+ *
+ * @param testResult the new test result
+ */
+ public void setTestResult(TestResult testResult) {
+ this.testResult = testResult;
+ }
+
+ /**
+ * Gets the execution timestamp.
+ *
+ * @return the execution timestamp
+ */
+ public long getExecutionTimestamp() {
+ return executionTimestamp;
+ }
+
+ /**
+ * Sets the execution timestamp.
+ *
+ * @param executionTimestamp the new execution timestamp
+ */
+ public void setExecutionTimestamp(long executionTimestamp) {
+ this.executionTimestamp = executionTimestamp;
+ }
+}