From 54c9038c9f3353f2cc74d723fdf274b1efba1341 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Wed, 13 Aug 2014 16:07:06 +0200 Subject: [PATCH] [Major] Refactored StrolchConfiguration.xml to use environments Now the agent requires an environment parameter to start, and the configuration of that environment is used to load different sections of the configuration file --- src/main/java/li/strolch/testbase/runtime/RuntimeMock.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/li/strolch/testbase/runtime/RuntimeMock.java b/src/main/java/li/strolch/testbase/runtime/RuntimeMock.java index 1d4b535a7..0f7c30042 100644 --- a/src/main/java/li/strolch/testbase/runtime/RuntimeMock.java +++ b/src/main/java/li/strolch/testbase/runtime/RuntimeMock.java @@ -111,10 +111,14 @@ public final class RuntimeMock { } public void startContainer() { + startContainer("dev"); + } + + public void startContainer(String environment) { try { StrolchAgent agent = new StrolchAgent(); - agent.setup(this.rootPath); + agent.setup(environment, this.rootPath); agent.initialize(); agent.start();