0

I would like to use arquillian to do some more specific tests. The application is a jsf 2.2 web application which uses google guice 4.0 for DI.

In my web.xml i've defined a custom injection provider:

<context-param>
        <param-name>com.sun.faces.injectionProvider</param-name>
        <param-value>com.custom.guice.GuiceInjectionProvider</param-value>
</context-param>

This works fine, except for the tests with arquillian. The tests are started with a wildfly-arquillian-container-managed adapter. The container starts-up, deploys and runs the testcase but the DI does not work.

I've also tried the arquillian-guice-extensions with @GuiceWebConfiguration, @GuiceConfiguration but nothing will work. Does anyone has experience with this case?

user3726033
  • 125
  • 2
  • 10

0 Answers0