aboutsummaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2016-04-18 16:59:29 +0300
committerHenri Sara <hesara@vaadin.com>2016-04-18 16:59:29 +0300
commit27031d0971e9e558e079934247b2dfa8df5464d7 (patch)
tree3a6ad912a65aba6e5accc32381cd9687bf6e38d5 /uitest
parentc162767ef314c566e6644d648dfaa5f594306054 (diff)
downloadvaadin-framework-27031d0971e9e558e079934247b2dfa8df5464d7.tar.gz
vaadin-framework-27031d0971e9e558e079934247b2dfa8df5464d7.zip
Fixes for DevelopmentServerLauncher
Makes it possible to run DSL in the uitest project using the same configuration as before. Note that this change might not fix all issues with DSL. Change-Id: Ie69a97e79247d6c211eb0762c4d4def3499b88ae
Diffstat (limited to 'uitest')
-rw-r--r--uitest/pom.xml5
-rw-r--r--uitest/src/main/java/com/vaadin/launcher/DevelopmentServerLauncher.java4
-rw-r--r--uitest/src/main/java/com/vaadin/screenshotbrowser/ScreenshotBrowser.java2
-rw-r--r--uitest/src/test/java/com/vaadin/tests/tb3/PrivateTB3Configuration.java2
4 files changed, 5 insertions, 8 deletions
diff --git a/uitest/pom.xml b/uitest/pom.xml
index ee47dcf56e..3ec2454d8a 100644
--- a/uitest/pom.xml
+++ b/uitest/pom.xml
@@ -115,7 +115,6 @@
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
-<!--
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
@@ -128,9 +127,7 @@
</exclusions>
<scope>provided</scope>
</dependency>
--->
<!-- jetty-servlets needed by ProxyTest, but not by jetty-runner -->
-<!--
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlets</artifactId>
@@ -192,7 +189,7 @@
</exclusions>
<scope>provided</scope>
</dependency>
--->
+
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
diff --git a/uitest/src/main/java/com/vaadin/launcher/DevelopmentServerLauncher.java b/uitest/src/main/java/com/vaadin/launcher/DevelopmentServerLauncher.java
index aa2c63393b..8f86c2d288 100644
--- a/uitest/src/main/java/com/vaadin/launcher/DevelopmentServerLauncher.java
+++ b/uitest/src/main/java/com/vaadin/launcher/DevelopmentServerLauncher.java
@@ -61,7 +61,7 @@ import com.vaadin.launcher.util.BrowserLauncher;
*/
public class DevelopmentServerLauncher {
- private static final String KEYSTORE = "uitest/src/com/vaadin/launcher/keystore";
+ private static final String KEYSTORE = "src/main/resources/com/vaadin/launcher/keystore";
private final static int serverPort = 8888;
/**
@@ -142,7 +142,7 @@ public class DevelopmentServerLauncher {
String mode) throws Exception {
// Assign default values for some arguments
- assignDefault(serverArgs, "webroot", "WebContent");
+ assignDefault(serverArgs, "webroot", "src/main/webapp");
assignDefault(serverArgs, "httpPort", "" + serverPort);
assignDefault(serverArgs, "context", "");
assignDefault(serverArgs, "slowdown", "/run/APP/PUBLISHED/js_label.js");
diff --git a/uitest/src/main/java/com/vaadin/screenshotbrowser/ScreenshotBrowser.java b/uitest/src/main/java/com/vaadin/screenshotbrowser/ScreenshotBrowser.java
index 7ed96b38d8..a3fc282131 100644
--- a/uitest/src/main/java/com/vaadin/screenshotbrowser/ScreenshotBrowser.java
+++ b/uitest/src/main/java/com/vaadin/screenshotbrowser/ScreenshotBrowser.java
@@ -398,7 +398,7 @@ public class ScreenshotBrowser extends UI {
private static File findScreenshotDir() {
File propertiesFile = new File(
- "work/eclipse-run-selected-test.properties");
+ "../work/eclipse-run-selected-test.properties");
if (!propertiesFile.exists()) {
throw new RuntimeException("File "
+ propertiesFile.getAbsolutePath() + " not found.");
diff --git a/uitest/src/test/java/com/vaadin/tests/tb3/PrivateTB3Configuration.java b/uitest/src/test/java/com/vaadin/tests/tb3/PrivateTB3Configuration.java
index 227ef4a84f..85104c784b 100644
--- a/uitest/src/test/java/com/vaadin/tests/tb3/PrivateTB3Configuration.java
+++ b/uitest/src/test/java/com/vaadin/tests/tb3/PrivateTB3Configuration.java
@@ -57,7 +57,7 @@ public abstract class PrivateTB3Configuration extends ScreenshotTB3Test {
private static final String DEPLOYMENT_PROPERTY = "com.vaadin.testbench.deployment.url";
private static final String HUB_URL = "com.vaadin.testbench.hub.url";
private static final Properties properties = new Properties();
- private static final File propertiesFile = new File("work",
+ private static final File propertiesFile = new File("../work",
"eclipse-run-selected-test.properties");
private static final String FIREFOX_PATH = "firefox.path";
private static final String PHANTOMJS_PATH = "phantomjs.binary.path";