aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
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();
+ }
+}