You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2015/01/01 16:31:26 UTC
karaf git commit: [KARAF-3428] Cleanup CDI dependencies and add Pax
CDI itests
Repository: karaf
Updated Branches:
refs/heads/karaf-3.0.x 67c9ab541 -> 5ca71be37
[KARAF-3428] Cleanup CDI dependencies and add Pax CDI itests
Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/5ca71be3
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/5ca71be3
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/5ca71be3
Branch: refs/heads/karaf-3.0.x
Commit: 5ca71be37c6302fefd98f1544681227f98bb62f7
Parents: 67c9ab5
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Thu Jan 1 16:30:54 2015 +0100
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Thu Jan 1 16:30:54 2015 +0100
----------------------------------------------------------------------
.../enterprise/src/main/feature/feature.xml | 11 +-
.../itests/features/PaxCdiFeaturesTest.java | 115 +++++++++++++++++++
pom.xml | 2 -
3 files changed, 117 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/karaf/blob/5ca71be3/assemblies/features/enterprise/src/main/feature/feature.xml
----------------------------------------------------------------------
diff --git a/assemblies/features/enterprise/src/main/feature/feature.xml b/assemblies/features/enterprise/src/main/feature/feature.xml
index d762c8e..03c8280 100644
--- a/assemblies/features/enterprise/src/main/feature/feature.xml
+++ b/assemblies/features/enterprise/src/main/feature/feature.xml
@@ -244,19 +244,12 @@
<bundle>mvn:org.apache.karaf.jms/org.apache.karaf.jms.command/${project.version}</bundle>
</feature>
- <feature name="openwebbeans" description="Apache OpenWebBeans CDI container support" version="${openwebbeans.version}" resolver="(obr)">
- <details>Add support of Apache OpenWebBeans CDI container.</details>
- <feature>http</feature>
+ <feature name="openwebbeans" description="Alias to the pax-cdi-openwebbeans feature" version="${pax.cdi.version}" resolver="(obr)">
<feature>pax-cdi-openwebbeans</feature>
- <bundle>mvn:org.apache.openwebbeans/openwebbeans-impl/${openwebbeans.version}</bundle>
- <bundle>mvn:org.apache.openwebbeans/openwebbeans-osgi/${openwebbeans.version}</bundle>
</feature>
- <feature name="weld" description="JBoss Weld CDI container support" version="${weld.version}" resolver="(obr)">
- <details>Add support of JBoss Weld CDI container.</details>
+ <feature name="weld" description="Alias to the pax-cdi-weld feature" version="${pax.cdi.version}" resolver="(obr)">
<feature>pax-cdi-weld</feature>
- <bundle>mvn:javax.annotation/javax.annotation-api/1.2</bundle>
- <bundle>mvn:org.jboss.weld/weld-osgi-bundle/${weld.version}</bundle>
</feature>
<feature name="application-without-isolation" description="Provide EBA archive support" version="${aries.application.version}">
http://git-wip-us.apache.org/repos/asf/karaf/blob/5ca71be3/itests/src/test/java/org/apache/karaf/itests/features/PaxCdiFeaturesTest.java
----------------------------------------------------------------------
diff --git a/itests/src/test/java/org/apache/karaf/itests/features/PaxCdiFeaturesTest.java b/itests/src/test/java/org/apache/karaf/itests/features/PaxCdiFeaturesTest.java
new file mode 100644
index 0000000..0ea77ba
--- /dev/null
+++ b/itests/src/test/java/org/apache/karaf/itests/features/PaxCdiFeaturesTest.java
@@ -0,0 +1,115 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.karaf.itests.features;
+
+import org.apache.karaf.itests.KarafTestSupport;
+import org.junit.Ignore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.junit.PaxExam;
+import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
+import org.ops4j.pax.exam.spi.reactors.PerClass;
+
+@RunWith(PaxExam.class)
+@ExamReactorStrategy(PerClass.class)
+public class PaxCdiFeaturesTest extends KarafTestSupport {
+
+ @Test
+ public void installPaxCdiFeature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi");
+ }
+
+ @Test
+ public void installPaxCdi11Feature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-1.1");
+ }
+
+ @Test
+ public void installPaxCdi12Feature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-1.2");
+ }
+
+ @Test
+ public void installPaxCdiWeldFeature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-weld");
+ }
+
+ @Test
+ public void installPaxCdiWeld11Feature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-1.1-weld");
+ }
+
+ @Test
+ public void installPaxCdiWeld12Feature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-1.2-weld");
+ }
+
+ @Test
+ public void installPaxCdiOpenwebbeansFeature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-openwebbeans");
+ }
+
+ @Test
+ @Ignore("PAXCDI-146 and Servlet API dependency")
+ public void installPaxCdiWebFeature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-web");
+ }
+
+ @Test
+ @Ignore("PAXCDI-146 and Servlet API dependency")
+ public void installPaxCdi11WebFeature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-1.1-web");
+ }
+
+ @Test
+ @Ignore("PAXCDI-146 and Servlet API dependency")
+ public void installPaxCdi12WebFeature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-1.2-web");
+ }
+
+ @Test
+ @Ignore("PAXCDI-146 and Servlet API dependency")
+ public void installPaxCdiWebWeldFeature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-web-weld");
+ }
+
+ @Test
+ @Ignore("PAXCDI-146 and Servlet API dependency")
+ public void installPaxCdi11WebWeldFeature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-1.1-web-weld");
+ }
+
+ @Test
+ @Ignore("PAXCDI-146 and Servlet API dependency")
+ public void installPaxCdi12WebWeldFeature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-1.2-web-weld");
+ }
+
+ @Test
+ @Ignore("PAXCDI-146 and Servlet API dependency")
+ public void installPaxCdiWebOpenwebbeansFeature() throws Exception {
+ installAssertAndUninstallFeatures("pax-cdi-web-openwebbeans");
+ }
+
+ @Test
+ public void installDeltaspikeCoreFeature() throws Exception {
+ installAssertAndUninstallFeatures("deltaspike-core");
+ }
+
+ @Test
+ public void installDeltaspikeJpaFeature() throws Exception {
+ installAssertAndUninstallFeatures("deltaspike-jpa");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/karaf/blob/5ca71be3/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index e14d0ef..87352f5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -218,7 +218,6 @@
<log4j.version>1.2.17</log4j.version>
<maven.version>2.0.9</maven.version>
<mina.version>2.0.7</mina.version>
- <openwebbeans.version>1.2.6</openwebbeans.version>
<osgi.version>5.0.0</osgi.version>
<osgi.compendium.version>5.0.0</osgi.compendium.version>
<org.json.version>20140107</org.json.version>
@@ -246,7 +245,6 @@
<xbean.version>3.18</xbean.version>
<xerces.version>2.11.0</xerces.version>
<javax.mail.version>1.4.5</javax.mail.version>
- <weld.version>2.1.1.Final</weld.version>
<!-- Furter used maven plugin versions; e.g. in the docs -->
<plugin.depends.version>1.2</plugin.depends.version>