[JBoss JIRA] (ARQ-814) Should support injection of EJBs (as CDI Beans) in Weld Embedded
by Rafael Garcia (JIRA)
[ https://issues.jboss.org/browse/ARQ-814?page=com.atlassian.jira.plugin.sy... ]
Rafael Garcia commented on ARQ-814:
-----------------------------------
Any chance of this issue getting any progress???? :'(
> Should support injection of EJBs (as CDI Beans) in Weld Embedded
> ----------------------------------------------------------------
>
> Key: ARQ-814
> URL: https://issues.jboss.org/browse/ARQ-814
> Project: Arquillian
> Issue Type: Bug
> Components: Weld Containers
> Affects Versions: weld_1.0.0.CR3
> Reporter: Anthony O.
> Assignee: Marko Lukša
> Attachments: EJBTest.java
>
>
> As seen in [this post on the Arquillian forum|https://community.jboss.org/message/723563], we cannot test that simple class as an NPE is thrown from {{org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.MockEjBServices}} which seems to be a copy of Weld code as [Aslak Knutsen|https://community.jboss.org/people/aslak] said.
> {code}
> @RunWith(Arquillian.class)
> public class EJBTest {
> @Deployment
> public static JavaArchive createTestArchive() {
> return ShrinkWrap
> .create(JavaArchive.class, "test.jar")
> .addAsManifestResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
> }
> @Stateless
> public static class SomeService {
> public String someMethod() {
> return "test";
> }
> }
> @Inject
> SomeService someService;
> @Test
> public void testStatelessCall() {
> Assert.assertEquals("test", someService.someMethod());
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 3 months
[JBoss JIRA] (ARQ-2041) Arquillian Weld container should not use org.jboss.weld.servlet.StaticWeldProvider
by Martin Kouba (JIRA)
Martin Kouba created ARQ-2041:
---------------------------------
Summary: Arquillian Weld container should not use org.jboss.weld.servlet.StaticWeldProvider
Key: ARQ-2041
URL: https://issues.jboss.org/browse/ARQ-2041
Project: Arquillian
Issue Type: Bug
Components: Weld Containers
Reporter: Martin Kouba
{{org.jboss.weld.servlet.StaticWeldProvider}} is not used in Weld since 2.2.5.Final. Actually, the class was removed from master branch (Weld 3) and 2.4 branch (soon current stable).
The adapter should probably implement its own {{CDIProvider}} to support the simulated environments properly.
Affects 2.0.0.Beta2 and 1.0.0.CR9.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months