Author: struberg
Date: Thu Jul 21 18:09:12 2011
New Revision: 1149289
URL: http://svn.apache.org/viewvc?rev=1149289&view=rev
Log:
OWB-593 also need to fix our test environment setup for AnnotatedType usage
Modified:
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/TestContext.java
Modified:
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/TestContext.java
URL:
http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/TestContext.java?rev=1149289&r1=1149288&r2=1149289&view=diff
==============================================================================
---
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/TestContext.java
(original)
+++
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/TestContext.java
Thu Jul 21 18:09:12 2011
@@ -29,6 +29,7 @@ import javax.decorator.Decorator;
import javax.enterprise.context.Dependent;
import javax.enterprise.context.spi.Context;
import javax.enterprise.inject.Instance;
+import javax.enterprise.inject.spi.AnnotatedType;
import javax.enterprise.inject.spi.Bean;
import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.InjectionPoint;
@@ -333,7 +334,8 @@ public abstract class TestContext implem
webBeansContext.getManagedBeanConfigurator().checkManagedBeanCondition(clazz);
webBeansContext.getInterceptorsManager().addNewInterceptor(clazz);
- webBeansContext.getInterceptorUtil().checkInterceptorConditions(clazz);
+ AnnotatedType annotatedType =
webBeansContext.getAnnotatedElementFactory().newAnnotatedType(clazz);
+
webBeansContext.getInterceptorUtil().checkInterceptorConditions(annotatedType);
component = webBeansContext.getManagedBeanConfigurator().define(clazz,
WebBeansType.INTERCEPTOR);
webBeansContext.getWebBeansInterceptorConfig().configureInterceptorClass((ManagedBean<Object>)
component,
webBeansContext.getAnnotationManager().getInterceptorBindingMetaAnnotations(
@@ -528,4 +530,4 @@ public abstract class TestContext implem
{
}
-}
\ No newline at end of file
+}