[arquillian-issues] [JBoss JIRA] (ARQ-543) CDI injection into testcase does not work on GlassFish
Aslak Knutsen (Updated) (JIRA)
jira-events at lists.jboss.org
Tue Oct 25 15:37:46 EDT 2011
[ https://issues.jboss.org/browse/ARQ-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aslak Knutsen updated ARQ-543:
------------------------------
Fix Version/s: glassfish_1.0.0.CR2
(was: glassfish_1.0.0.Final)
> CDI injection into testcase does not work on GlassFish
> ------------------------------------------------------
>
> Key: ARQ-543
> URL: https://issues.jboss.org/browse/ARQ-543
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: GlassFish Containers
> Affects Versions: glassfish_1.0.0.CR1
> Environment: arquillian-glassfish-remote-3.1 - 1.0.0.CR1, 1.0.0.Final-SNAPSHOT
> arquillian-core-impl-base - 1.0.0.CR1
> GlassFish 3.1.1
> Reporter: Jozef Hartinger
> Assignee: Aslak Knutsen
> Priority: Blocker
> Fix For: glassfish_1.0.0.CR2
>
> Attachments: foo.FooTest.txt
>
>
> Having the following testcase:
> {code:JAVA}
> @RunWith(Arquillian.class)
> public class FooTest {
> @Inject
> private Foo foo;
> @Deployment
> public static JavaArchive deploy() {
> return ShrinkWrap.create(JavaArchive.class, "foo.jar").addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")
> .addClasses(Foo.class, FooTest.class);
> }
> @Test
> public void test() {
> Assert.assertNotNull(foo);
> }
> }
> public class Foo {
> }
> {code}
> the test always fails on Glassfish while it works fine on JBoss AS 7.
--
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 arquillian-issues
mailing list