@EnableAutoWeld
@ActivateScopes({RequestScoped.class})
public class ExampleTest {
@Inject
ConfigurationBuilderProvider configurationBuilderProvider;
@Test
void testSomething() {
...
}
}
I now have the problem that neither the @PostConstruct annotated method nor the no-arg constructor get invoked, for any beans that get injected into ConfigurationBuilderProvider, i am guessing that this is a mistake on my side and that i am missing something here. Both ConfigurationBuilderProvider and the Bean injected into it are Annotated with @ApplicationScoped.
Edit: the @PostConstruct annotated method does get invoked in the ConfigurationBuilderProvider class, so just at the top level but not for dependencies further down the tree
I have a test set up like this:
I now have the problem that neither the @PostConstruct annotated method nor the no-arg constructor get invoked, for any beans that get injected into ConfigurationBuilderProvider, i am guessing that this is a mistake on my side and that i am missing something here. Both ConfigurationBuilderProvider and the Bean injected into it are Annotated with @ApplicationScoped.
Edit: the @PostConstruct annotated method does get invoked in the ConfigurationBuilderProvider class, so just at the top level but not for dependencies further down the tree