Hi,

my junit tests extends from AbstractCdiAwareTest and i'm trying to inject
one of my DAO's.
The NPE occurs in TestContainerFactory.isServletContextAwareContainer
because testContainer is null.

Here is my list with depenedencies:

            <artifactId>junit</artifactId>
            <artifactId>cdi-api</artifactId>
            <artifactId>openwebbeans-impl</artifactId>
            <artifactId>openwebbeans-spi</artifactId>
            <artifactId>openwebbeans-resource</artifactId>
            <artifactId>myfaces-extcdi-core-api</artifactId>
            <artifactId>myfaces-extcdi-core-impl</artifactId>
            <artifactId>myfaces-extcdi-base-test-infrastructure</artifactId>
            <artifactId>myfaces-extcdi-junit-support-module</artifactId>
            <artifactId>myfaces-extcdi-owb-support-module</artifactId>

OWB 1.1.1, CODI 1.0.1, JUnit 4.6

How can i fix this?

Thanks and best regards
Thomas

Reply via email to