summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-06-10 21:32:57 +0300
committerVaadin Code Review <review@vaadin.com>2013-09-17 12:40:47 +0000
commitd6954f86e401566456a64418ae80e2f8853a5e43 (patch)
tree23f24c8c30759d82e6fb9c12a3f8558f65c6e43b
parent1de438915468e92ad0657ac4f22dc3e1b1580e63 (diff)
downloadvaadin-framework-d6954f86e401566456a64418ae80e2f8853a5e43.tar.gz
vaadin-framework-d6954f86e401566456a64418ae80e2f8853a5e43.zip
Include TestBench 3.1.1 in the project (#12572)
* Jetty is updated to 8.1.9.v20130131 to avoid conflicts with TestBench dependencies * The new jetty dependens on servlet 3.0 Change-Id: Ibbbc8f5838feb4c132ee2b6f7d7f3f630e95dd68
-rw-r--r--ivysettings.xml4
-rw-r--r--uitest/ivy.xml38
-rw-r--r--uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java8
3 files changed, 35 insertions, 15 deletions
diff --git a/ivysettings.xml b/ivysettings.xml
index fa08f3d0bb..e18b2233d1 100644
--- a/ivysettings.xml
+++ b/ivysettings.xml
@@ -11,6 +11,8 @@
<settings defaultResolver="public" />
<resolvers>
<ibiblio name="public" m2compatible="true" />
+ <ibiblio name="vaadin-addons" usepoms="true"
+ m2compatible="true" root="http://maven.vaadin.com/vaadin-addons" />
<filesystem name="local-maven" m2compatible="true">
<artifact
pattern="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" />
@@ -23,6 +25,8 @@
</filesystem>
</resolvers>
<modules>
+ <module organisation="com.vaadin" name="vaadin-testbench"
+ resolver="vaadin-addons" />
<module organisation="com.vaadin" name="vaadin-buildhelpers"
resolver="build-temp" />
<module organisation="com.vaadin" name="vaadin-shared"
diff --git a/uitest/ivy.xml b/uitest/ivy.xml
index e737165288..d75a591f94 100644
--- a/uitest/ivy.xml
+++ b/uitest/ivy.xml
@@ -1,4 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE ivy-module [
+ <!ENTITY jetty.version "8.1.9.v20130131">
+]>
<ivy-module version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
@@ -11,7 +14,7 @@
<conf name="build" />
<conf name="build-provided" visibility="private" />
<conf name="ide" visibility="private" />
- <conf name="jetty-run" extends="build" visibility="private" />
+ <conf name="jetty-run" visibility="private" />
</configurations>
<publications>
<artifact type="war" ext="war" />
@@ -23,9 +26,6 @@
<dependency org="javax.validation" name="validation-api"
rev="1.0.0.GA" conf="build,ide -> default,sources" />
- <!-- Servlet API -->
- <dependency org="javax.servlet" name="servlet-api"
- rev="2.4" conf="build-provided,ide -> default" />
<!-- Google App Engine -->
<dependency org="com.google.appengine" name="appengine-api-1.0-sdk"
rev="1.2.1" conf="build-provided,ide -> default" />
@@ -33,7 +33,9 @@
<!-- LIBRARY DEPENDENCIES (compile time) -->
<!-- Project modules -->
<dependency org="com.vaadin" name="vaadin-server"
- rev="${vaadin.version}" conf="build->build"></dependency>
+ rev="${vaadin.version}" conf="build->build">
+ <exclude org="javax.servlet"></exclude>
+ </dependency>
<dependency org="com.vaadin" name="vaadin-client"
rev="${vaadin.version}" conf="build->build"></dependency>
<dependency org="com.vaadin" name="vaadin-client-compiled"
@@ -41,25 +43,33 @@
<dependency org="com.vaadin" name="vaadin-themes"
rev="${vaadin.version}" conf="build->build"></dependency>
<dependency org="com.vaadin" name="vaadin-push" rev="${vaadin.version}"
- conf="build->build"></dependency>
+ conf="build->build">
+ <exclude org="javax.servlet"></exclude>
+ </dependency>
<!-- For compiling TestingWidgetSet -->
<dependency org="com.vaadin" name="vaadin-client-compiler"
rev="${vaadin.version}" conf="build-provided-> build"></dependency>
- <!-- Newest Jetty does not work with Ivy currently (orbit -> jar
- mapping problem) -->
+ <!-- Servlet 3.0 API -->
+ <dependency org="javax.servlet" name="javax.servlet-api"
+ rev="3.0.1" conf="build-provided,ide -> default" />
+
<dependency org="org.eclipse.jetty" name="jetty-server"
- rev="7.5.0.v20110901" conf="ide, build-provided, jetty-run->default" />
+ rev="&jetty.version;" conf="ide, build-provided, jetty-run->default">
+ <exclude org="org.eclipse.jetty.orbit"></exclude>
+ </dependency>
<!-- jetty-servlets needed by ProxyTest, but not by jetty-runner -->
<dependency org="org.eclipse.jetty" name="jetty-servlets"
- rev="7.5.0.v20110901" conf="ide, build-provided, jetty-run->default" />
+ rev="&jetty.version;" conf="ide, build-provided, jetty-run->default" />
<dependency org="org.eclipse.jetty" name="jetty-websocket"
- rev="7.5.0.v20110901" conf="ide, jetty-run->default" />
+ rev="&jetty.version;" conf="ide, jetty-run->default" />
<dependency org="org.eclipse.jetty" name="jetty-webapp"
- rev="7.5.0.v20110901" conf="ide, build-provided, jetty-run->default" />
+ rev="&jetty.version;" conf="ide, build-provided, jetty-run->default" />
<dependency org="org.mortbay.jetty" name="jetty-runner"
- rev="7.5.0.v20110901" conf="jetty-run->default" />
+ rev="&jetty.version;" conf="ide, jetty-run->default">
+ <exclude org="org.eclipse.jetty.orbit"></exclude>
+ </dependency>
<dependency org="junit" name="junit" rev="4.11"
conf="build,ide -> default" />
@@ -71,6 +81,8 @@
<!-- Mainly for SQLContainer tests -->
<dependency org="org.hsqldb" name="hsqldb" rev="2.2.6"
conf="build,ide -> default" />
+ <dependency org="com.vaadin" name="vaadin-testbench"
+ rev="3.1.1" conf="build-provided,ide -> default" />
</dependencies>
</ivy-module>
diff --git a/uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java b/uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java
index 5ab2134cdb..a8d639cbc8 100644
--- a/uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java
+++ b/uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java
@@ -24,10 +24,12 @@ import java.net.ServerSocket;
import java.net.Socket;
import java.text.SimpleDateFormat;
import java.util.Calendar;
+import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
+import javax.servlet.DispatcherType;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
@@ -181,7 +183,8 @@ public class DevelopmentServerLauncher {
String[] paths = serverArgs.get("slowdown").split(",");
for (String p : paths) {
System.out.println("Slowing down: " + p);
- webappcontext.addFilter(SlowFilter.class, p, 1);
+ webappcontext.addFilter(SlowFilter.class, p,
+ EnumSet.of(DispatcherType.REQUEST));
}
}
// --cache=/run/APP/PUBLISHED/*,/other/path/asd.jpg
@@ -190,7 +193,8 @@ public class DevelopmentServerLauncher {
String[] paths = serverArgs.get("cache").split(",");
for (String p : paths) {
System.out.println("Enabling cache for: " + p);
- webappcontext.addFilter(CacheFilter.class, p, 1);
+ webappcontext.addFilter(CacheFilter.class, p,
+ EnumSet.of(DispatcherType.REQUEST));
}
}