Questions tagged [cdi-unit]

CDI-Unit is a JUnit 4 and TestNG test runner that enables unit testing Java CDI applications.

CDI-Unit is a JUnit 4 and TestNG test runner that enables unit testing Java CDI applications.

The tests run outside of a web container. The configuration is performed in the unit test class using annotations.

20 questions
0
votes
1 answer

Is there a way to use weld and cdi-unit with java 11 openj9

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 "ClassNotFoundException: org.jglue.cdiunit.CdiRunner"
0
votes
0 answers

Nested PER_METHOD inside PER_CLASS should call TestInstanceFactory

Currently I am trying to integrate JUnit5.3.0-RC1 into a Weld-SE-Testframework ejb-cdi-unit. The first solution on JUnit5.2.0 available in ejb-cdi-unit:1.1.15 restricts the TestInstance-Classes somewhat concerning CDI. I can only allow @Inject. That…
aschoerk
  • 3,333
  • 2
  • 15
  • 29
0
votes
1 answer

JUnit Testing with bean injection

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, JBoss 7.1.3) but I can't make it work. As soon as I try to inject a bean (and I need to inject…
jojo____
  • 247
  • 3
  • 16
0
votes
2 answers

CDI Unit Test fails with unsatisified dependency Exception for Qualifier Type

Hi I have a following Qualifier Type defined.. @Qualifier @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.TYPE, ElementType.FIELD }) public @interface SortAndFilterType { /** * The value for the sort and filter. * * @return the sort…
0
votes
1 answer

Is Jglue (CDI-unit) still available?

On some projects i'm using jglue in order to test with CDI injection support. The server "jglue.org" and maven repository are no longer reachable. Does anyone know what happens?
1
2