[weld-issues] [JBoss JIRA] (CDITCK-15) Corner case tests for injecting into non-contextual EJBs

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Mar 26 11:56:48 EDT 2012


    [ https://issues.jboss.org/browse/CDITCK-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679359#comment-12679359 ] 

Pete Muir commented on CDITCK-15:
---------------------------------

For example, check that:

{code}
class Foo {}
{code}

{code}
@Stateless
class Bar {

   @Inject Foo foo;

   public Foo getFoo() { return foo; }

}
{code}

{code}
@Stateless
class Baz {

   @EJB Bar bar;

   public Bar getBar() { return bar; }

}
{code}

{code}
@Stateless
class Qux {

   @EJB Baz baz;

   public Baz getBaz() { return baz; }

}
{code}

{code}
assertNotNull(qux.getBaz().getBar());
{code}
                
> Corner case tests for injecting into non-contextual EJBs
> --------------------------------------------------------
>
>                 Key: CDITCK-15
>                 URL: https://issues.jboss.org/browse/CDITCK-15
>             Project: CDI TCK
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Tests
>            Reporter: Pete Muir
>            Assignee: Shane Bryzak
>             Fix For: 1.1.0.CR1
>
>
> For example:
> * chains of EJBs with contextual instances
> * reentrant injcetion (allowed by EJB?)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list