I am using weld and cdi-unit with java 11-openj9 in a project, when I run my unit test, configured with @runWith(Cdirunner.class) I get this error "Cl ...
I am using weld and cdi-unit with java 11-openj9 in a project, when I run my unit test, configured with @runWith(Cdirunner.class) I get this error "Cl ...
I have a JEE project that is deployed on wildfly 10 smoothly. I'm trying to write junit tests for my CDI beans with cdi-unit library (http://bryncook ...
I test class using cdi-unit library. Test class: ITestCDI interface: TestCDI class: So, running this test I get error: But if I inject Tes ...
The following snippet is enough to reproduce my problem: Either I set the thrown attribute public and get the error org.jboss.weld.exceptions.Def ...
Assume that the RequestScope is active (Using cdi-unit's @InRequestScope) Given package at.joma.stackoverflow.cdi; public class Product { pub ...
Has anyone ever tried to test Activiti / BPMN processes using pure CDI? In theory (if I didn't miss anything) I would think it should be possible to u ...
Here is the unit testing code. When we run unit test code (SampleServiceTest2); EntityManager injected in AbstractDao is always null! How can we injec ...
I'm using the CDI-Unit JAR http://jglue.org/cdi-unit/ to be able to use CDI in my JUnit 4 tests, I've injected my EJB and called a method to persist a ...
First off I googled intensively and according to http://jglue.org/cdi-unit-user-guide/ producing stuff to inject in a unit test should work just fine. ...
I am running tests with CDI-unit runner and want some classes to be excluded (because they act on CDI events). I tried beans.xml: but CDI-unit seem ...
I am trying to test my web application using JUnit. I saw that there is cdi-unit which seems pretty nice or Arquillian with JBoss (I am on Seam3, JBos ...
Hi I have a following Qualifier Type defined.. And Two Implementations out of it. And I'm injecting from the Client as .. Every thing works ...
I'm trying to develop a (Maven-based) jar library which can act as a DAL for my Java application. This is my persistence.xml file This is the Da ...
we want to use Jglue framework for unit testing our CDI application. We use gradle for building. We have prepared something like this: 1) Class to t ...
I am trying out using CDI-Unit to test my Wicket components, which are using CDI for dependency injection. Tests seems to work perfectly in Eclipse bu ...