You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by ch...@apache.org on 2012/02/01 17:31:23 UTC

[4/4] git commit: Fixed ExcludeTest to work correctly in AS7

Fixed ExcludeTest to work correctly in AS7


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

Branch: refs/heads/master
Commit: 117675028f18ac0ef42217118b0f7e297c70762c
Parents: ee227d6
Author: Christian Kaltepoth <ch...@kaltepoth.de>
Authored: Sun Jan 29 16:49:15 2012 +0100
Committer: Christian Kaltepoth <ch...@apache.org>
Committed: Wed Feb 1 17:02:15 2012 +0100

----------------------------------------------------------------------
 .../test/core/api/exclude/ExcludeTest.java         |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/11767502/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/api/exclude/ExcludeTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/api/exclude/ExcludeTest.java b/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/api/exclude/ExcludeTest.java
index 8b47b66..a9cd3f7 100644
--- a/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/api/exclude/ExcludeTest.java
+++ b/deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/api/exclude/ExcludeTest.java
@@ -19,7 +19,10 @@
 package org.apache.deltaspike.test.core.api.exclude;
 
 
+import javax.enterprise.inject.spi.Extension;
+
 import org.apache.deltaspike.core.api.provider.BeanProvider;
+import org.apache.deltaspike.core.impl.exclude.ExcludeExtension;
 import org.apache.deltaspike.core.util.ProjectStageProducer;
 import org.apache.deltaspike.test.core.api.temptestutil.ShrinkWrapArchiveUtil;
 import org.jboss.arquillian.container.test.api.Deployment;
@@ -52,7 +55,8 @@ public class ExcludeTest
                         new String[]{"org.apache.deltaspike.core",
                                 "org.apache.deltaspike.test.core.api.exclude"},
                         null))
-                .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
+                .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")
+                .addAsServiceProvider(Extension.class, ExcludeExtension.class);
     }
 
     /**