You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by gp...@apache.org on 2012/01/11 10:59:30 UTC

[2/2] git commit: DELTASPIKE-43 integration-tests for @Exclude

DELTASPIKE-43 integration-tests for @Exclude


Project: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/commit/4496991f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/tree/4496991f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/diff/4496991f

Branch: refs/heads/master
Commit: 4496991f901f00ab14478bd9812aee75c285944e
Parents: 51e7e23
Author: gpetracek <gp...@apache.org>
Authored: Wed Jan 11 10:53:31 2012 +0100
Committer: gpetracek <gp...@apache.org>
Committed: Wed Jan 11 10:53:31 2012 +0100

----------------------------------------------------------------------
 .../integration/core/api/exclude/Bean.java         |   26 +++
 .../core/api/exclude/ExcludeIntegrationTest.java   |  143 +++++++++++++++
 .../core/api/exclude/IntegrationTestBean.java      |   30 +++
 .../core/api/exclude/IntegrationTestDbBean.java    |   29 +++
 .../integration/core/api/exclude/NoBean.java       |   29 +++
 .../integration/core/api/exclude/ProdDbBean.java   |   30 +++
 .../integration/core/api/exclude/StdBean.java      |   30 +++
 .../IntegrationTestProjectStageProducer.java       |   40 ++++
 .../core/api/provider/BeanManagerProviderTest.java |    3 +
 .../impl/activation/TestClassDeactivation.java     |    1 +
 .../META-INF/apache-deltaspike.properties          |    4 +-
 .../test.javax.enterprise.inject.spi.Extension     |   21 ++
 12 files changed, 385 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/4496991f/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/Bean.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/Bean.java b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/Bean.java
new file mode 100644
index 0000000..0731f92
--- /dev/null
+++ b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/Bean.java
@@ -0,0 +1,26 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you 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.deltaspike.integration.core.api.exclude;
+
+/**
+ * Class which is always active
+ */
+public class Bean
+{
+}

http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/4496991f/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/ExcludeIntegrationTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/ExcludeIntegrationTest.java b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/ExcludeIntegrationTest.java
new file mode 100644
index 0000000..b6ed4b8
--- /dev/null
+++ b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/ExcludeIntegrationTest.java
@@ -0,0 +1,143 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you 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.deltaspike.integration.core.api.exclude;
+
+
+import org.apache.deltaspike.core.api.projectstage.ProjectStage;
+import org.apache.deltaspike.core.api.provider.BeanProvider;
+import org.apache.deltaspike.core.impl.projectstage.ProjectStageProducer;
+import org.apache.deltaspike.integration.category.SeCategory;
+import org.apache.deltaspike.integration.core.api.projectstage.IntegrationTestProjectStageProducer;
+import org.apache.deltaspike.integration.util.FileUtils;
+import org.apache.deltaspike.integration.util.ShrinkWrapArchiveUtil;
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.asset.EmptyAsset;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.experimental.categories.Category;
+import org.junit.runner.RunWith;
+
+import java.net.URL;
+
+/**
+ * Integration tests for {@link org.apache.deltaspike.core.api.exclude.Exclude}
+ */
+@RunWith(Arquillian.class)
+@Category(SeCategory.class)
+public class ExcludeIntegrationTest
+{
+    /**
+     * Deploy package classes with project-stage integration-test
+     */
+    @Deployment
+    public static WebArchive deploy()
+    {
+        URL fileUrl = ExcludeIntegrationTest.class.getClassLoader()
+                .getResource("META-INF/apache-deltaspike.properties");
+
+        URL testExtensionsFileUrl = ExcludeIntegrationTest.class.getClassLoader()
+                .getResource("META-INF/services/test.javax.enterprise.inject.spi.Extension");
+
+        return ShrinkWrap.create(WebArchive.class)
+                .addAsLibraries(ShrinkWrapArchiveUtil.getArchives(null,
+                        "META-INF/beans.xml",
+                        new String[]{"org.apache.deltaspike.core",
+                                "org.apache.deltaspike.integration.category",
+                                "org.apache.deltaspike.integration.util",
+                                "org.apache.deltaspike.integration.core.api.exclude"},
+                        null))
+                .addClass(IntegrationTestProjectStageProducer.class)
+                .addAsResource(FileUtils.getFileForURL(fileUrl.toString()))
+                .addAsResource(FileUtils.getFileForURL(testExtensionsFileUrl.toString()),
+                        "META-INF/services/javax.enterprise.inject.spi.Extension")
+                .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
+    }
+
+    /**
+     * check project-stage to ensure the correct config for the other tests in this class
+     */
+    @Test
+    public void checkProjectStage()
+    {
+        Assert.assertEquals(ProjectStage.IntegrationTest, ProjectStageProducer.getInstance().getProjectStage());
+    }
+
+    /**
+     * check if this package is included at all
+     */
+    @Test
+    public void simpleCheckOfBeansInPackage()
+    {
+        Bean testBean = BeanProvider.getContextualReference(Bean.class, true);
+
+        Assert.assertNotNull(testBean);
+    }
+
+    /**
+     * bean is excluded in any case
+     */
+    @Test
+    public void excludeWithoutCondition()
+    {
+        NoBean noBean = BeanProvider.getContextualReference(NoBean.class, true);
+
+        Assert.assertNull(noBean);
+    }
+
+    /**
+     * bean excluded in case of project-stage integration-test
+     */
+    @Test
+    public void excludeInCaseOfProjectStageIntegrationTest()
+    {
+        StdBean stdBean = BeanProvider.getContextualReference(StdBean.class, true);
+
+        Assert.assertNull(stdBean);
+    }
+
+    /**
+     * bean included in case of project-stage integration-test
+     */
+    @Test
+    public void includedInCaseOfProjectStageIntegrationTest()
+    {
+        IntegrationTestBean integrationTestBean = BeanProvider.getContextualReference(IntegrationTestBean.class, true);
+
+        Assert.assertNotNull(integrationTestBean);
+    }
+
+    /**
+     * beans de-/activated via expressions
+     */
+    @Test
+    public void excludedIfExpressionMatch()
+    {
+        ProdDbBean prodDbBean = BeanProvider.getContextualReference(ProdDbBean.class, true);
+
+        Assert.assertNull(prodDbBean);
+
+        IntegrationTestDbBean integrationTestDbBean =
+                BeanProvider.getContextualReference(IntegrationTestDbBean.class, true);
+
+        Assert.assertNotNull(integrationTestDbBean);
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/4496991f/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/IntegrationTestBean.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/IntegrationTestBean.java b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/IntegrationTestBean.java
new file mode 100644
index 0000000..5503192
--- /dev/null
+++ b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/IntegrationTestBean.java
@@ -0,0 +1,30 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you 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.deltaspike.integration.core.api.exclude;
+
+import org.apache.deltaspike.core.api.exclude.Exclude;
+import org.apache.deltaspike.core.api.projectstage.ProjectStage;
+
+/**
+ * Class which gets only included in case of project-stage integration-test
+ */
+@Exclude(exceptIfProjectStage = ProjectStage.IntegrationTest.class)
+public class IntegrationTestBean
+{
+}

http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/4496991f/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/IntegrationTestDbBean.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/IntegrationTestDbBean.java b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/IntegrationTestDbBean.java
new file mode 100644
index 0000000..1a243df
--- /dev/null
+++ b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/IntegrationTestDbBean.java
@@ -0,0 +1,29 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you 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.deltaspike.integration.core.api.exclude;
+
+import org.apache.deltaspike.core.api.exclude.Exclude;
+
+/**
+ * Class which gets excluded if the configured value for 'db' is 'prodDB'
+ */
+@Exclude(onExpression = "db==prodDB")
+public class IntegrationTestDbBean
+{
+}

http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/4496991f/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/NoBean.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/NoBean.java b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/NoBean.java
new file mode 100644
index 0000000..c34928a
--- /dev/null
+++ b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/NoBean.java
@@ -0,0 +1,29 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you 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.deltaspike.integration.core.api.exclude;
+
+import org.apache.deltaspike.core.api.exclude.Exclude;
+
+/**
+ * Class which gets excluded in any case
+ */
+@Exclude
+public class NoBean
+{
+}

http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/4496991f/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/ProdDbBean.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/ProdDbBean.java b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/ProdDbBean.java
new file mode 100644
index 0000000..6d68131
--- /dev/null
+++ b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/ProdDbBean.java
@@ -0,0 +1,30 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you 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.deltaspike.integration.core.api.exclude;
+
+import org.apache.deltaspike.core.api.exclude.Exclude;
+
+/**
+ * Class which gets excluded if there is a configured value for the key called 'db' and
+ * the value is not 'prodDB'
+ */
+@Exclude(onExpression = "db!=prodDB;db==*")
+public class ProdDbBean
+{
+}

http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/4496991f/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/StdBean.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/StdBean.java b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/StdBean.java
new file mode 100644
index 0000000..66c4fa3
--- /dev/null
+++ b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/exclude/StdBean.java
@@ -0,0 +1,30 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you 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.deltaspike.integration.core.api.exclude;
+
+import org.apache.deltaspike.core.api.exclude.Exclude;
+import org.apache.deltaspike.core.api.projectstage.ProjectStage;
+
+/**
+ * Class which gets excluded in case of project-stage integration-test
+ */
+@Exclude(ifProjectStage = ProjectStage.IntegrationTest.class)
+public class StdBean
+{
+}

http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/4496991f/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/projectstage/IntegrationTestProjectStageProducer.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/projectstage/IntegrationTestProjectStageProducer.java b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/projectstage/IntegrationTestProjectStageProducer.java
new file mode 100644
index 0000000..18ba399
--- /dev/null
+++ b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/projectstage/IntegrationTestProjectStageProducer.java
@@ -0,0 +1,40 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you 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.deltaspike.integration.core.api.projectstage;
+
+import org.apache.deltaspike.core.api.projectstage.ProjectStage;
+import org.apache.deltaspike.core.impl.projectstage.ProjectStageProducer;
+
+import javax.enterprise.inject.Typed;
+
+/**
+ * Custom {@link ProjectStageProducer} which sets the project-stage to integration-test as soon as it gets used.
+ * It's configured in apache-deltaspike.properties
+ */
+@Typed()
+public class IntegrationTestProjectStageProducer extends ProjectStageProducer
+{
+    /**
+     * {@inheritDoc}
+     */
+    public IntegrationTestProjectStageProducer()
+    {
+        setProjectStage(ProjectStage.IntegrationTest);
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/4496991f/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/provider/BeanManagerProviderTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/provider/BeanManagerProviderTest.java b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/provider/BeanManagerProviderTest.java
index 8104c24..3d007ef 100644
--- a/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/provider/BeanManagerProviderTest.java
+++ b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/api/provider/BeanManagerProviderTest.java
@@ -35,6 +35,9 @@ import org.junit.runner.RunWith;
 
 import javax.enterprise.inject.spi.BeanManager;
 
+/**
+ * X TODO will be merged with the original test as soon as we have the final approach
+ */
 @RunWith(Arquillian.class)
 @Category(SeCategory.class)
 public class BeanManagerProviderTest

http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/4496991f/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/impl/activation/TestClassDeactivation.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/impl/activation/TestClassDeactivation.java b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/impl/activation/TestClassDeactivation.java
index f37ba01..30b3060 100644
--- a/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/impl/activation/TestClassDeactivation.java
+++ b/deltaspike/core/integration-test/src/test/java/org/apache/deltaspike/integration/core/impl/activation/TestClassDeactivation.java
@@ -35,6 +35,7 @@ import org.junit.runner.RunWith;
 import java.net.URL;
 
 /**
+ * X TODO will be merged with the original test as soon as we have the final approach
  * Test for {@link org.apache.deltaspike.core.api.activation.ClassDeactivator}
  */
 @RunWith(Arquillian.class)

http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/4496991f/deltaspike/core/integration-test/src/test/resources/META-INF/apache-deltaspike.properties
----------------------------------------------------------------------
diff --git a/deltaspike/core/integration-test/src/test/resources/META-INF/apache-deltaspike.properties b/deltaspike/core/integration-test/src/test/resources/META-INF/apache-deltaspike.properties
index 081c302..b27e78b 100644
--- a/deltaspike/core/integration-test/src/test/resources/META-INF/apache-deltaspike.properties
+++ b/deltaspike/core/integration-test/src/test/resources/META-INF/apache-deltaspike.properties
@@ -15,4 +15,6 @@
 #specific language governing permissions and limitations
 #under the License.
 
-org.apache.deltaspike.core.api.activation.ClassDeactivator=org.apache.deltaspike.integration.core.impl.activation.TestClassDeactivator
\ No newline at end of file
+org.apache.deltaspike.core.impl.projectstage.ProjectStageProducer=org.apache.deltaspike.integration.core.api.projectstage.IntegrationTestProjectStageProducer
+org.apache.deltaspike.core.api.activation.ClassDeactivator=org.apache.deltaspike.integration.core.impl.activation.TestClassDeactivator
+db=itDB

http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/4496991f/deltaspike/core/integration-test/src/test/resources/META-INF/services/test.javax.enterprise.inject.spi.Extension
----------------------------------------------------------------------
diff --git a/deltaspike/core/integration-test/src/test/resources/META-INF/services/test.javax.enterprise.inject.spi.Extension b/deltaspike/core/integration-test/src/test/resources/META-INF/services/test.javax.enterprise.inject.spi.Extension
new file mode 100644
index 0000000..c190cda
--- /dev/null
+++ b/deltaspike/core/integration-test/src/test/resources/META-INF/services/test.javax.enterprise.inject.spi.Extension
@@ -0,0 +1,21 @@
+#####################################################################################
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+#####################################################################################
+
+org.apache.deltaspike.core.api.provider.BeanManagerProvider
+org.apache.deltaspike.core.impl.exclude.ExcludeExtension
\ No newline at end of file