You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Rudy De Busscher (JIRA)" <ji...@apache.org> on 2012/10/22 17:46:12 UTC

[jira] [Commented] (DELTASPIKE-285) MinimalMessagesTest fails on WLS12c

    [ https://issues.apache.org/jira/browse/DELTASPIKE-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481442#comment-13481442 ] 

Rudy De Busscher commented on DELTASPIKE-285:
---------------------------------------------

By excluding that class from being used in the test war (is not the class under test), it works.

@@ -57,7 +56,8 @@ public class MinimalMessagesTest
     {
         JavaArchive testJar = ShrinkWrap
                 .create(JavaArchive.class, "minimalMessageTest.jar")
-                .addPackage(MinimalMessagesTest.class.getPackage())
+                .addPackages(false, Filters.exclude(MessageContextTest.class),
+                        MinimalMessagesTest.class.getPackage())
                 .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
 
         return ShrinkWrap


                
> MinimalMessagesTest fails on WLS12c
> -----------------------------------
>
>                 Key: DELTASPIKE-285
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-285
>             Project: DeltaSpike
>          Issue Type: Test
>          Components: Core
>    Affects Versions: 0.2-incubating
>         Environment: WLS12C
>            Reporter: Rudy De Busscher
>            Priority: Minor
>
> Was already a long time on my TODO list
> Test archive fails during deployment with
> org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [MessageContext] with qualifiers [@Default] at injection point [[field] @Inject private org.apache.deltaspike.test.core.api.message.MessageContextTest.messageContext]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira