|
Hi, I have a similar problem. I am using weld with cdi-unit, and my test cases run through if I have a beans.xml in src/main/resources/META-INF. This setup both finds beans defined in main/java and test/java. But if I move that beans.xml to src/test/resources/META-INF, the bean class that is defined in main is not found. Does that seem plausibly correct
Ideally I would just like to use no beans.xml at all, should that be possible ? I tried using both @AdditionalClasses and @AdditionalPackages, but did not get far with either approach.
|