|
Test the following and similar scenarios:
Scenario 1:
- Obtain an AnnotatedType instance of a class using BeanManager.createAnnotatedType()
- Modify the AnnotatedType - add interceptor bindings for various enabled interceptors
- Register the modified annotated type
- Verify that the resulting bean is intercepted while the original bean which shares the same Java class is not affected
Scenario 2:
Same as above except for step 3 in which an InjectionTarget is obtained for the modified annotated type using BeanManager.createInjectionTarget and the verification is executed on the instance returned from InjectionTarget.produce().
|