org.jboss.cdi.tck.tests.decorators.definition
Class DecoratorDefinitionTest

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.definition.DecoratorDefinitionTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

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

Author:
pmuir, Martin Kouba

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
DecoratorDefinitionTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void testAbstractDecoratorNotImplementingMethodOfDecoratedType(BankAccount account)
          Test that if the decorator does not implement a method of the decorated type, the container will provide an implicit implementation that calls the method on the delegate.
 void testDecoratedTypes()
           
 void testDecoratorDoesNotImplementDelegateType()
           
 void testDecoratorIsManagedBean()
           
 void testDecoratorOrdering()
           
 void testDelegateInjectionPoint()
           
 void testDuplicateBindingsOnResolveDecoratorsFails()
           
 void testEmptyTypeSetOnResolveDecoratorsFails()
           
 void testInstanceOfDecoratorForEachEnabled()
           
 void testNonBindingsOnResolveDecoratorsFails()
           
 void testNonEnabledDecoratorNotResolved()
           
 
Methods inherited from class org.jboss.cdi.tck.AbstractTest
annotationSetMatches, annotationSetMatches, deserialize, destroyContext, getBeans, getBeans, getCurrentConfiguration, getCurrentManager, getInstanceByName, getInstanceByType, getInstanceByType, getUniqueBean, getUniqueBean, isThrowablePresent, rawTypeSetMatches, serialize, 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

DecoratorDefinitionTest

public DecoratorDefinitionTest()
Method Detail

createTestArchive

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

testDecoratorIsManagedBean

@SpecAssertions(value={@SpecAssertion(section="8.1",id="d"),@SpecAssertion(section="8.1.1",id="a"),@SpecAssertion(section="8.1.3",id="c"),@SpecAssertion(section="8.3",id="aa"),@SpecAssertion(section="11.1.1",id="a"),@SpecAssertion(section="12.4",id="kc")})
public void testDecoratorIsManagedBean()

testDecoratedTypes

@SpecAssertions(value={@SpecAssertion(section="8.1",id="b"),@SpecAssertion(section="8.1",id="c"),@SpecAssertion(section="11.1.1",id="b"),@SpecAssertion(section="11.3.12",id="a"),@SpecAssertion(section="11.3.12",id="b")})
public void testDecoratedTypes()

testDelegateInjectionPoint

@SpecAssertions(value={@SpecAssertion(section="8.1.2",id="a"),@SpecAssertion(section="11.1.1",id="c")})
public void testDelegateInjectionPoint()

testDecoratorDoesNotImplementDelegateType

@SpecAssertion(section="8.1.3",
               id="b")
public void testDecoratorDoesNotImplementDelegateType()

testDecoratorOrdering

@SpecAssertions(value={@SpecAssertion(section="8.2",id="b"),@SpecAssertion(section="8.3",id="aa"),@SpecAssertion(section="11.3.12",id="a")})
public void testDecoratorOrdering()

testNonEnabledDecoratorNotResolved

@SpecAssertion(section="8.2",
               id="a")
public void testNonEnabledDecoratorNotResolved()

testInstanceOfDecoratorForEachEnabled

@SpecAssertion(section="11.1.1",
               id="d")
public void testInstanceOfDecoratorForEachEnabled()

testDuplicateBindingsOnResolveDecoratorsFails

@SpecAssertion(section="11.3.12",
               id="c")
public void testDuplicateBindingsOnResolveDecoratorsFails()

testNonBindingsOnResolveDecoratorsFails

@SpecAssertion(section="11.3.12",
               id="d")
public void testNonBindingsOnResolveDecoratorsFails()

testEmptyTypeSetOnResolveDecoratorsFails

@SpecAssertion(section="11.3.12",
               id="e")
public void testEmptyTypeSetOnResolveDecoratorsFails()

testAbstractDecoratorNotImplementingMethodOfDecoratedType

@SpecAssertion(section="8.1.3",
               id="ca")
public void testAbstractDecoratorNotImplementingMethodOfDecoratedType(BankAccount account)
Test that if the decorator does not implement a method of the decorated type, the container will provide an implicit implementation that calls the method on the delegate.

Parameters:
account -


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