[
https://issues.jboss.org/browse/ARQ-543?page=com.atlassian.jira.plugin.sy...
]
Jozef Hartinger updated ARQ-543:
--------------------------------
Description:
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.
was:
Having the following testcase:
@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 {
}
the test always fails on Glassfish while it works fine on JBoss AS 7.
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
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