From 695c875725b30a1a348f9c8a84e2bdd5ec1f3a82 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 28 Dec 2012 17:24:51 +0100 Subject: o Sending logs to to disk. --- .../esper/testing/jenkins/CreateMissingMavenModuleJobsApp.java | 2 +- src/test/java/io/trygvis/esper/testing/jenkins/SetJobTypeApp.java | 2 +- src/test/java/io/trygvis/esper/testing/web/WebRunner.java | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/test/java/io') diff --git a/src/test/java/io/trygvis/esper/testing/jenkins/CreateMissingMavenModuleJobsApp.java b/src/test/java/io/trygvis/esper/testing/jenkins/CreateMissingMavenModuleJobsApp.java index a8f8ce7..13a78d7 100644 --- a/src/test/java/io/trygvis/esper/testing/jenkins/CreateMissingMavenModuleJobsApp.java +++ b/src/test/java/io/trygvis/esper/testing/jenkins/CreateMissingMavenModuleJobsApp.java @@ -22,7 +22,7 @@ import static io.trygvis.esper.testing.jenkins.JenkinsClient.apiXml; public class CreateMissingMavenModuleJobsApp { public static void main(String[] args) throws Exception { - final Config config = Config.loadFromDisk(); + final Config config = Config.loadFromDisk("create-missing-maven-module"); final BoneCPDataSource boneCp = config.createBoneCp(); HTTPCache httpCache = HttpClient.createHttpCache(config); Abdera abdera = config.createAbdera(); diff --git a/src/test/java/io/trygvis/esper/testing/jenkins/SetJobTypeApp.java b/src/test/java/io/trygvis/esper/testing/jenkins/SetJobTypeApp.java index ffd3212..f272feb 100644 --- a/src/test/java/io/trygvis/esper/testing/jenkins/SetJobTypeApp.java +++ b/src/test/java/io/trygvis/esper/testing/jenkins/SetJobTypeApp.java @@ -19,7 +19,7 @@ import static io.trygvis.esper.testing.jenkins.JenkinsClient.apiXml; public class SetJobTypeApp { public static void main(String[] args) throws Exception { - final Config config = Config.loadFromDisk(); + final Config config = Config.loadFromDisk("set-job-type"); final BoneCPDataSource boneCp = config.createBoneCp(); HTTPCache httpCache = HttpClient.createHttpCache(config); Abdera abdera = config.createAbdera(); diff --git a/src/test/java/io/trygvis/esper/testing/web/WebRunner.java b/src/test/java/io/trygvis/esper/testing/web/WebRunner.java index 2e73b9f..60644de 100644 --- a/src/test/java/io/trygvis/esper/testing/web/WebRunner.java +++ b/src/test/java/io/trygvis/esper/testing/web/WebRunner.java @@ -1,6 +1,7 @@ package io.trygvis.esper.testing.web; import io.trygvis.appsh.booter.jetty.*; +import io.trygvis.esper.testing.*; import org.slf4j.bridge.*; import java.io.*; @@ -8,8 +9,8 @@ import java.io.*; public class WebRunner { public static void main(String[] args) throws Exception { - SLF4JBridgeHandler.removeHandlersForRootLogger(); - SLF4JBridgeHandler.install(); + // Ensures that the system has been initialized + @SuppressWarnings("UnusedDeclaration") Config config = WebConfig.config; JettyWebServer server = new JettyWebServer(); server.setHttpPort(1337); -- cgit v1.2.3