CDI-Unit @Produces not working
问题 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. My setup: @RunWith(CdiRunner.class) public abstract class CdiUnitBaseTest extends DBUnitBaseTest { @Produces public EntityManager em() { return em; //field from base class filled @BeforeClass } @Produces public Logger logger() { return LogManager.getLogger(); } } public class SurveyBeanTest extends CdiUnitBaseTest { @Inject private SurveyBean