diff options
Diffstat (limited to 'pdf-as-web/src/main')
3 files changed, 46 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; + } + +} diff --git a/pdf-as-web/src/main/resources/META-INF/services/at.gv.egiz.status.TestFactory b/pdf-as-web/src/main/resources/META-INF/services/at.gv.egiz.status.TestFactory new file mode 100644 index 00000000..d0787dae --- /dev/null +++ b/pdf-as-web/src/main/resources/META-INF/services/at.gv.egiz.status.TestFactory @@ -0,0 +1 @@ +at.gv.egiz.pdfas.web.status.PdfAsWebTestFactory
\ No newline at end of file |