use of org.jboss.weld.metadata.cache.InterceptorBindingModel in project core by weld.
the class SimpleInterceptorTest method testInterceptorModel.
@Test
public void testInterceptorModel() {
TypeStore typeStore = new TypeStore();
InterceptorBindingModel<SecondaryInterceptionBinding> interceptorBindingModel = new InterceptorBindingModel<SecondaryInterceptionBinding>(new ClassTransformer(typeStore, new SharedObjectCache(), ReflectionCacheFactory.newInstance(typeStore), RegistrySingletonProvider.STATIC_INSTANCE).getEnhancedAnnotation(SecondaryInterceptionBinding.class));
Set<Annotation> annotations = interceptorBindingModel.getInheritedInterceptionBindingTypes();
assert annotations.size() != 0;
}
Aggregations