From e929b5f4c6d9351b29150e6c1843f06806ee7b00 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Mon, 1 Dec 2014 12:23:47 +0100 Subject: added status servlet to pdf-as-web --- .../java/at/gv/egiz/status/impl/TestRunResult.java | 88 ++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 pdf-as-web-status/src/main/java/at/gv/egiz/status/impl/TestRunResult.java (limited to 'pdf-as-web-status/src/main/java/at/gv/egiz/status/impl/TestRunResult.java') 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; + } +} -- cgit v1.2.3