aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web/src/main/java/at')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/status/PdfAsWebTestFactory.java18
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/status/SimpleAliveTest.java27
2 files changed, 45 insertions, 0 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/status/PdfAsWebTestFactory.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/status/PdfAsWebTestFactory.java
new file mode 100644
index 00000000..a6fa8a05
--- /dev/null
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/status/PdfAsWebTestFactory.java
@@ -0,0 +1,18 @@
+package at.gv.egiz.pdfas.web.status;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import at.gv.egiz.status.Test;
+import at.gv.egiz.status.TestFactory;
+
+public class PdfAsWebTestFactory implements TestFactory {
+
+ @Override
+ public List<Test> createTests() {
+ List<Test> testList = new ArrayList<Test>();
+ testList.add(new SimpleAliveTest());
+ return testList;
+ }
+
+}
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/status/SimpleAliveTest.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/status/SimpleAliveTest.java
new file mode 100644
index 00000000..1f78f90c
--- /dev/null
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/status/SimpleAliveTest.java
@@ -0,0 +1,27 @@
+package at.gv.egiz.pdfas.web.status;
+
+import at.gv.egiz.status.Test;
+import at.gv.egiz.status.TestResult;
+import at.gv.egiz.status.TestStatus;
+import at.gv.egiz.status.impl.BaseTestResult;
+
+public class SimpleAliveTest implements Test {
+
+ @Override
+ public String getName() {
+ return "ALIVE";
+ }
+
+ @Override
+ public long getCacheDelay() {
+ return 0;
+ }
+
+ @Override
+ public TestResult runTest() {
+ BaseTestResult result = new BaseTestResult();
+ result.setStatus(TestStatus.OK);
+ return result;
+ }
+
+}