Class DecoratorAndInterceptorTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.jboss.cdi.tck.AbstractTest
-
- org.jboss.cdi.tck.tests.full.decorators.interceptor.DecoratorAndInterceptorTest
-
- All Implemented Interfaces:
org.testng.IHookable,org.testng.ITestNGListener
@SpecVersion(spec="cdi", version="2.0") public class DecoratorAndInterceptorTest extends AbstractTest
-
-
Field Summary
-
Fields inherited from class org.jboss.cdi.tck.AbstractTest
beanManager
-
-
Constructor Summary
Constructors Constructor Description DecoratorAndInterceptorTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.shrinkwrap.api.spec.WebArchivecreateTestArchive()voidtestLifecycleCallbacks()voidtestMethodCallbacks()Test that interceptor chain is called before decorator chain and that invocations of decorator methods during method or lifecycle callback interception are not business method invocation, and therefore are not intercepted by interceptors.-
Methods inherited from class org.jboss.cdi.tck.AbstractTest
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentBeanContainer, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches
-
-
-
-
Method Detail
-
createTestArchive
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
-
testMethodCallbacks
@SpecAssertion(section="enabled_decorators",id="b") @SpecAssertion(section="enabled_interceptors",id="i") @SpecAssertion(section="biz_method",id="ka") @SpecAssertion(section="biz_method",id="kb") @SpecAssertion(section="biz_method",id="kc") @SpecAssertion(section="biz_method",id="kd") public void testMethodCallbacks()
Test that interceptor chain is called before decorator chain and that invocations of decorator methods during method or lifecycle callback interception are not business method invocation, and therefore are not intercepted by interceptors.
-
testLifecycleCallbacks
@SpecAssertion(section="biz_method",id="kc") @SpecAssertion(section="biz_method",id="kd") public void testLifecycleCallbacks()
-
-