|
I get the message when Running tests using cdi-unit like this:
@RunWith(CdiRunner.class)
|
@AdditionalClasses(MyInterceptor.class)
|
public class ExampleIT {
|
|
@Inject
|
RequireInitService requireInitService;
|
|
@Test
|
public void testPostConstructCalled() {
|
// test fails e.g. when CircuitBreaker does not call ctx.proceed()
|
assertTrue(requireInitService.postConstructCalled);
|
}
|
|
}
|
|
|
@Singleton
|
@Interceptors(MyInterceptor.class)
|
@IgnoreCallsWhen(failures = 2)
|
public class RequireInitService {
|
private boolean postConstructCalled=true;
|
}
|
|