summaryrefslogtreecommitdiffstats
path: root/tests/testbench
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-07-31 11:50:29 +0300
committerLeif Åstrand <leif@vaadin.com>2012-07-31 11:50:29 +0300
commit569a82a7bfc4958a9ac164e16caecc3fb47fdbc7 (patch)
tree4cd32371a757f1d45b2eca2ea90a858db4d7b76e /tests/testbench
parentaeb7c094e11ab338a800a63602bda9e797752e22 (diff)
downloadvaadin-framework-569a82a7bfc4958a9ac164e16caecc3fb47fdbc7.tar.gz
vaadin-framework-569a82a7bfc4958a9ac164e16caecc3fb47fdbc7.zip
Move common code to AbstractDeploymentConfiguration (#8574)
Diffstat (limited to 'tests/testbench')
-rw-r--r--tests/testbench/com/vaadin/launcher/ApplicationRunnerServlet.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testbench/com/vaadin/launcher/ApplicationRunnerServlet.java b/tests/testbench/com/vaadin/launcher/ApplicationRunnerServlet.java
index dd93b1a8b6..b2148c8f08 100644
--- a/tests/testbench/com/vaadin/launcher/ApplicationRunnerServlet.java
+++ b/tests/testbench/com/vaadin/launcher/ApplicationRunnerServlet.java
@@ -61,7 +61,8 @@ public class ApplicationRunnerServlet extends AbstractApplicationServlet {
Collections.addAll(defaultPackages, initParameter.split(","));
}
String str = TestBase.class.getName().replace('.', '/') + ".class";
- URL url = getClassLoader().getResource(str);
+ URL url = getDeploymentConfiguration().getClassLoader()
+ .getResource(str);
if ("file".equals(url.getProtocol())) {
File comVaadinTests = new File(url.getPath()).getParentFile()
.getParentFile();