aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-12-19 23:42:12 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2012-12-19 23:42:12 +0100
commit79c6c1d042fdad06294f4db57c5b8c91b6a0e5d0 (patch)
tree815da28b8238bbe3bf44ef126fb79c0ffaf41de6 /src/test
parent4abc880c4b9ce6888acab85c815514f3dd195fa4 (diff)
downloadesper-testing-79c6c1d042fdad06294f4db57c5b8c91b6a0e5d0.tar.gz
esper-testing-79c6c1d042fdad06294f4db57c5b8c91b6a0e5d0.tar.bz2
esper-testing-79c6c1d042fdad06294f4db57c5b8c91b6a0e5d0.tar.xz
esper-testing-79c6c1d042fdad06294f4db57c5b8c91b6a0e5d0.zip
o Adding a basic web app.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/io/trygvis/esper/testing/web/WebRunner.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/java/io/trygvis/esper/testing/web/WebRunner.java b/src/test/java/io/trygvis/esper/testing/web/WebRunner.java
new file mode 100644
index 0000000..36c2dfb
--- /dev/null
+++ b/src/test/java/io/trygvis/esper/testing/web/WebRunner.java
@@ -0,0 +1,19 @@
+package io.trygvis.esper.testing.web;
+
+import io.trygvis.appsh.booter.jetty.JettyWebServer;
+import org.slf4j.bridge.*;
+
+import java.io.*;
+
+public class WebRunner {
+
+ public static void main(String[] args) throws Exception {
+ SLF4JBridgeHandler.removeHandlersForRootLogger();
+ SLF4JBridgeHandler.install();
+
+ JettyWebServer server = new JettyWebServer();
+ server.setHttpPort(1337);
+ server.addContext("/", new File("src/main/webapp").getAbsoluteFile());
+ server.run();
+ }
+}