From ea8a0f0e9affc53098031aa23547a1515d98d038 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Wed, 25 Mar 2015 17:23:23 -0700 Subject: [PATCH] Moving CDI tests into /jetty-cdi/ tree --- jetty-cdi/pom.xml | 4 ++ .../test-cdi-it}/pom.xml | 20 +++++--- .../java/org/eclipse/jetty/tests/HelloIT.java | 0 .../org/eclipse/jetty/tests/ServerInfoIT.java | 0 .../eclipse/jetty/tests/ws/SessionInfoIT.java | 0 .../test/resources/jetty-logging.properties | 0 .../src/test/scripts/setup-jetty.sh | 0 .../src/test/scripts/start-jetty.sh | 0 .../src/test/scripts/stop-jetty.sh | 0 .../test-cdi-webapp}/pom.xml | 46 +++++++++++++++---- .../src/assembly/with-weld.xml | 31 +++++++++++++ .../org/eclipse/jetty/tests/HelloServlet.java | 0 .../jetty/tests/ServerInfoServlet.java | 0 .../eclipse/jetty/tests/logging/JULog.java | 0 .../jetty/tests/logging/JULogFactory.java | 0 .../jetty/tests/ws/SessionInfoSocket.java | 0 .../src/main/webapp/WEB-INF/beans.xml | 0 .../src/main/webapp/WEB-INF/web.xml | 0 tests/test-cdi/cdi-client/pom.xml | 37 --------------- tests/test-cdi/pom.xml | 35 -------------- 20 files changed, 87 insertions(+), 86 deletions(-) rename {tests/test-cdi/cdi-webapp-it => jetty-cdi/test-cdi-it}/pom.xml (93%) rename {tests/test-cdi/cdi-webapp-it => jetty-cdi/test-cdi-it}/src/test/java/org/eclipse/jetty/tests/HelloIT.java (100%) rename {tests/test-cdi/cdi-webapp-it => jetty-cdi/test-cdi-it}/src/test/java/org/eclipse/jetty/tests/ServerInfoIT.java (100%) rename {tests/test-cdi/cdi-webapp-it => jetty-cdi/test-cdi-it}/src/test/java/org/eclipse/jetty/tests/ws/SessionInfoIT.java (100%) rename {tests/test-cdi/cdi-webapp-it => jetty-cdi/test-cdi-it}/src/test/resources/jetty-logging.properties (100%) rename {tests/test-cdi/cdi-webapp-it => jetty-cdi/test-cdi-it}/src/test/scripts/setup-jetty.sh (100%) rename {tests/test-cdi/cdi-webapp-it => jetty-cdi/test-cdi-it}/src/test/scripts/start-jetty.sh (100%) rename {tests/test-cdi/cdi-webapp-it => jetty-cdi/test-cdi-it}/src/test/scripts/stop-jetty.sh (100%) rename {tests/test-cdi/cdi-webapp => jetty-cdi/test-cdi-webapp}/pom.xml (58%) create mode 100644 jetty-cdi/test-cdi-webapp/src/assembly/with-weld.xml rename {tests/test-cdi/cdi-webapp => jetty-cdi/test-cdi-webapp}/src/main/java/org/eclipse/jetty/tests/HelloServlet.java (100%) rename {tests/test-cdi/cdi-webapp => jetty-cdi/test-cdi-webapp}/src/main/java/org/eclipse/jetty/tests/ServerInfoServlet.java (100%) rename {tests/test-cdi/cdi-webapp => jetty-cdi/test-cdi-webapp}/src/main/java/org/eclipse/jetty/tests/logging/JULog.java (100%) rename {tests/test-cdi/cdi-webapp => jetty-cdi/test-cdi-webapp}/src/main/java/org/eclipse/jetty/tests/logging/JULogFactory.java (100%) rename {tests/test-cdi/cdi-webapp => jetty-cdi/test-cdi-webapp}/src/main/java/org/eclipse/jetty/tests/ws/SessionInfoSocket.java (100%) rename {tests/test-cdi/cdi-webapp => jetty-cdi/test-cdi-webapp}/src/main/webapp/WEB-INF/beans.xml (100%) rename {tests/test-cdi/cdi-webapp => jetty-cdi/test-cdi-webapp}/src/main/webapp/WEB-INF/web.xml (100%) delete mode 100644 tests/test-cdi/cdi-client/pom.xml delete mode 100644 tests/test-cdi/pom.xml diff --git a/jetty-cdi/pom.xml b/jetty-cdi/pom.xml index da858ba0646..7e260df39f2 100644 --- a/jetty-cdi/pom.xml +++ b/jetty-cdi/pom.xml @@ -18,5 +18,9 @@ cdi-core cdi-servlet cdi-websocket + test-cdi-webapp + diff --git a/tests/test-cdi/cdi-webapp-it/pom.xml b/jetty-cdi/test-cdi-it/pom.xml similarity index 93% rename from tests/test-cdi/cdi-webapp-it/pom.xml rename to jetty-cdi/test-cdi-it/pom.xml index 465cd06a414..160bdb00b9b 100644 --- a/tests/test-cdi/cdi-webapp-it/pom.xml +++ b/jetty-cdi/test-cdi-it/pom.xml @@ -19,14 +19,14 @@ - org.eclipse.jetty.tests - test-cdi-parent + org.eclipse.jetty.cdi + jetty-cdi-parent 9.3.0-SNAPSHOT 4.0.0 cdi-webapp-it jar - Jetty Tests :: CDI :: WebApp Integration Tests + Jetty :: CDI :: Test :: WebApp Integration Tests http://www.eclipse.org/jetty UTF-8 @@ -45,8 +45,8 @@ runtime - org.eclipse.jetty.tests - cdi-webapp + org.eclipse.jetty.cdi + test-cdi-webapp ${project.version} war runtime @@ -59,6 +59,14 @@ + + org.apache.maven.plugins + maven-deploy-plugin + + + true + + org.apache.maven.plugins maven-dependency-plugin @@ -70,7 +78,7 @@ copy-dependencies - cdi-webapp + test-cdi-webapp runtime war true diff --git a/tests/test-cdi/cdi-webapp-it/src/test/java/org/eclipse/jetty/tests/HelloIT.java b/jetty-cdi/test-cdi-it/src/test/java/org/eclipse/jetty/tests/HelloIT.java similarity index 100% rename from tests/test-cdi/cdi-webapp-it/src/test/java/org/eclipse/jetty/tests/HelloIT.java rename to jetty-cdi/test-cdi-it/src/test/java/org/eclipse/jetty/tests/HelloIT.java diff --git a/tests/test-cdi/cdi-webapp-it/src/test/java/org/eclipse/jetty/tests/ServerInfoIT.java b/jetty-cdi/test-cdi-it/src/test/java/org/eclipse/jetty/tests/ServerInfoIT.java similarity index 100% rename from tests/test-cdi/cdi-webapp-it/src/test/java/org/eclipse/jetty/tests/ServerInfoIT.java rename to jetty-cdi/test-cdi-it/src/test/java/org/eclipse/jetty/tests/ServerInfoIT.java diff --git a/tests/test-cdi/cdi-webapp-it/src/test/java/org/eclipse/jetty/tests/ws/SessionInfoIT.java b/jetty-cdi/test-cdi-it/src/test/java/org/eclipse/jetty/tests/ws/SessionInfoIT.java similarity index 100% rename from tests/test-cdi/cdi-webapp-it/src/test/java/org/eclipse/jetty/tests/ws/SessionInfoIT.java rename to jetty-cdi/test-cdi-it/src/test/java/org/eclipse/jetty/tests/ws/SessionInfoIT.java diff --git a/tests/test-cdi/cdi-webapp-it/src/test/resources/jetty-logging.properties b/jetty-cdi/test-cdi-it/src/test/resources/jetty-logging.properties similarity index 100% rename from tests/test-cdi/cdi-webapp-it/src/test/resources/jetty-logging.properties rename to jetty-cdi/test-cdi-it/src/test/resources/jetty-logging.properties diff --git a/tests/test-cdi/cdi-webapp-it/src/test/scripts/setup-jetty.sh b/jetty-cdi/test-cdi-it/src/test/scripts/setup-jetty.sh similarity index 100% rename from tests/test-cdi/cdi-webapp-it/src/test/scripts/setup-jetty.sh rename to jetty-cdi/test-cdi-it/src/test/scripts/setup-jetty.sh diff --git a/tests/test-cdi/cdi-webapp-it/src/test/scripts/start-jetty.sh b/jetty-cdi/test-cdi-it/src/test/scripts/start-jetty.sh similarity index 100% rename from tests/test-cdi/cdi-webapp-it/src/test/scripts/start-jetty.sh rename to jetty-cdi/test-cdi-it/src/test/scripts/start-jetty.sh diff --git a/tests/test-cdi/cdi-webapp-it/src/test/scripts/stop-jetty.sh b/jetty-cdi/test-cdi-it/src/test/scripts/stop-jetty.sh similarity index 100% rename from tests/test-cdi/cdi-webapp-it/src/test/scripts/stop-jetty.sh rename to jetty-cdi/test-cdi-it/src/test/scripts/stop-jetty.sh diff --git a/tests/test-cdi/cdi-webapp/pom.xml b/jetty-cdi/test-cdi-webapp/pom.xml similarity index 58% rename from tests/test-cdi/cdi-webapp/pom.xml rename to jetty-cdi/test-cdi-webapp/pom.xml index b1580b9f5f8..15ca5299f3a 100644 --- a/tests/test-cdi/cdi-webapp/pom.xml +++ b/jetty-cdi/test-cdi-webapp/pom.xml @@ -19,18 +19,18 @@ - org.eclipse.jetty.tests - test-cdi-parent + org.eclipse.jetty.cdi + jetty-cdi-parent 9.3.0-SNAPSHOT 4.0.0 - cdi-webapp + test-cdi-webapp war - Jetty Tests :: CDI :: WebApp + Jetty :: CDI :: Test :: WebApp http://www.eclipse.org/jetty UTF-8 - ${project.groupId}.cdi.webapp + ${project.groupId}.cdi.webapp.noweld @@ -50,12 +50,42 @@ provided - javax.websocket - javax.websocket-api - provided + org.jboss.weld.servlet + weld-servlet + ${weld.version} + test cdi-webapp + + + org.apache.maven.plugins + maven-deploy-plugin + + + true + + + + org.apache.maven.plugins + maven-assembly-plugin + 2.5.3 + + + with-weld + package + + single + + + + src/assembly/with-weld.xml + + + + + + diff --git a/jetty-cdi/test-cdi-webapp/src/assembly/with-weld.xml b/jetty-cdi/test-cdi-webapp/src/assembly/with-weld.xml new file mode 100644 index 00000000000..ca1747115dd --- /dev/null +++ b/jetty-cdi/test-cdi-webapp/src/assembly/with-weld.xml @@ -0,0 +1,31 @@ + + with-weld + + war + + false + + + ${project.basedir}/src/main/webapp + / + + + ${project.build.outputDirectory} + /WEB-INF/classes + + + + + /WEB-INF/lib + true + false + test + + *:cdi-api + *:weld-servlet + + + + diff --git a/tests/test-cdi/cdi-webapp/src/main/java/org/eclipse/jetty/tests/HelloServlet.java b/jetty-cdi/test-cdi-webapp/src/main/java/org/eclipse/jetty/tests/HelloServlet.java similarity index 100% rename from tests/test-cdi/cdi-webapp/src/main/java/org/eclipse/jetty/tests/HelloServlet.java rename to jetty-cdi/test-cdi-webapp/src/main/java/org/eclipse/jetty/tests/HelloServlet.java diff --git a/tests/test-cdi/cdi-webapp/src/main/java/org/eclipse/jetty/tests/ServerInfoServlet.java b/jetty-cdi/test-cdi-webapp/src/main/java/org/eclipse/jetty/tests/ServerInfoServlet.java similarity index 100% rename from tests/test-cdi/cdi-webapp/src/main/java/org/eclipse/jetty/tests/ServerInfoServlet.java rename to jetty-cdi/test-cdi-webapp/src/main/java/org/eclipse/jetty/tests/ServerInfoServlet.java diff --git a/tests/test-cdi/cdi-webapp/src/main/java/org/eclipse/jetty/tests/logging/JULog.java b/jetty-cdi/test-cdi-webapp/src/main/java/org/eclipse/jetty/tests/logging/JULog.java similarity index 100% rename from tests/test-cdi/cdi-webapp/src/main/java/org/eclipse/jetty/tests/logging/JULog.java rename to jetty-cdi/test-cdi-webapp/src/main/java/org/eclipse/jetty/tests/logging/JULog.java diff --git a/tests/test-cdi/cdi-webapp/src/main/java/org/eclipse/jetty/tests/logging/JULogFactory.java b/jetty-cdi/test-cdi-webapp/src/main/java/org/eclipse/jetty/tests/logging/JULogFactory.java similarity index 100% rename from tests/test-cdi/cdi-webapp/src/main/java/org/eclipse/jetty/tests/logging/JULogFactory.java rename to jetty-cdi/test-cdi-webapp/src/main/java/org/eclipse/jetty/tests/logging/JULogFactory.java diff --git a/tests/test-cdi/cdi-webapp/src/main/java/org/eclipse/jetty/tests/ws/SessionInfoSocket.java b/jetty-cdi/test-cdi-webapp/src/main/java/org/eclipse/jetty/tests/ws/SessionInfoSocket.java similarity index 100% rename from tests/test-cdi/cdi-webapp/src/main/java/org/eclipse/jetty/tests/ws/SessionInfoSocket.java rename to jetty-cdi/test-cdi-webapp/src/main/java/org/eclipse/jetty/tests/ws/SessionInfoSocket.java diff --git a/tests/test-cdi/cdi-webapp/src/main/webapp/WEB-INF/beans.xml b/jetty-cdi/test-cdi-webapp/src/main/webapp/WEB-INF/beans.xml similarity index 100% rename from tests/test-cdi/cdi-webapp/src/main/webapp/WEB-INF/beans.xml rename to jetty-cdi/test-cdi-webapp/src/main/webapp/WEB-INF/beans.xml diff --git a/tests/test-cdi/cdi-webapp/src/main/webapp/WEB-INF/web.xml b/jetty-cdi/test-cdi-webapp/src/main/webapp/WEB-INF/web.xml similarity index 100% rename from tests/test-cdi/cdi-webapp/src/main/webapp/WEB-INF/web.xml rename to jetty-cdi/test-cdi-webapp/src/main/webapp/WEB-INF/web.xml diff --git a/tests/test-cdi/cdi-client/pom.xml b/tests/test-cdi/cdi-client/pom.xml deleted file mode 100644 index 73d1245e588..00000000000 --- a/tests/test-cdi/cdi-client/pom.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - org.eclipse.jetty.tests - test-cdi-parent - 9.3.0-SNAPSHOT - - 4.0.0 - cdi-client - jar - Jetty Tests :: CDI :: Clients - http://www.eclipse.org/jetty - - UTF-8 - ${project.groupId}.cdi.clients - - - - diff --git a/tests/test-cdi/pom.xml b/tests/test-cdi/pom.xml deleted file mode 100644 index 16e201325e1..00000000000 --- a/tests/test-cdi/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - org.eclipse.jetty.tests - tests-parent - 9.3.0-SNAPSHOT - - 4.0.0 - test-cdi-parent - pom - Jetty Tests :: CDI Parent - http://www.eclipse.org/jetty - - cdi-webapp - cdi-webapp-it - cdi-client - -