[arquillian-issues] [JBoss JIRA] Commented: (ARQ-543) CDI injection into testcase does not work on GlassFish
Aslak Knutsen (JIRA)
jira-events at lists.jboss.org
Wed Aug 10 09:34:33 EDT 2011
[ https://issues.jboss.org/browse/ARQ-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620010#comment-12620010 ]
Aslak Knutsen commented on ARQ-543:
-----------------------------------
Which GlassFish container type, remote or embedded ? Which GlassFish version?
Using GlassFish Container 1.0.0.CR1-SNAPSHOT ?
Using Arq Core 1.0.0.CR1 ?
> 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
> Reporter: Jozef Hartinger
> Priority: Blocker
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list