org.jboss.cdi.tck.tests.decorators.interceptor
Class DecoratorAndInterceptorTest

java.lang.Object
  extended by org.jboss.arquillian.testng.Arquillian
      extended by org.jboss.cdi.tck.AbstractTest
          extended by org.jboss.cdi.tck.tests.decorators.interceptor.DecoratorAndInterceptorTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

@SpecVersion(spec="cdi",
             version="20091101")
public class DecoratorAndInterceptorTest
extends AbstractTest


Field Summary
 
Fields inherited from class org.jboss.cdi.tck.AbstractTest
beanManager
 
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER
 
Constructor Summary
DecoratorAndInterceptorTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void testLifecycleCallbacks()
           
 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.
 
Methods inherited from class org.jboss.cdi.tck.AbstractTest
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches
 
Methods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoratorAndInterceptorTest

public DecoratorAndInterceptorTest()
Method Detail

createTestArchive

@Deployment
public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()

testMethodCallbacks

@SpecAssertions(value={@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

@SpecAssertions(value={@SpecAssertion(section="biz_method",id="kc"),@SpecAssertion(section="biz_method",id="kd")})
public void testLifecycleCallbacks()


Copyright © 2008-2013 Seam Framework. All Rights Reserved.