Class DecoratorDefinitionTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.jboss.cdi.tck.AbstractTest
-
- org.jboss.cdi.tck.tests.full.decorators.definition.DecoratorDefinitionTest
-
- All Implemented Interfaces:
org.testng.IHookable,org.testng.ITestNGListener
@SpecVersion(spec="cdi", version="2.0") public class DecoratorDefinitionTest extends AbstractTest- Author:
- pmuir, Martin Kouba
-
-
Field Summary
-
Fields inherited from class org.jboss.cdi.tck.AbstractTest
beanManager
-
-
Constructor Summary
Constructors Constructor Description DecoratorDefinitionTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.shrinkwrap.api.spec.WebArchivecreateTestArchive()voidtestAbstractDecoratorNotImplementingMethodOfDecoratedType(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.voidtestDecoratedTypes()voidtestDecoratorDoesNotImplementDelegateType()voidtestDecoratorIsManagedBean()voidtestDecoratorOrdering()voidtestDelegateInjectionPoint()voidtestDuplicateBindingsOnResolveDecoratorsFails()voidtestEmptyTypeSetOnResolveDecoratorsFails()voidtestInstanceOfDecoratorForEachEnabled()voidtestNonBindingsOnResolveDecoratorsFails()voidtestNonEnabledDecoratorNotResolved()-
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()
-
testDecoratorIsManagedBean
@SpecAssertion(section="decorator_bean",id="d") @SpecAssertion(section="decorator_annotation",id="a") @SpecAssertion(section="decorated_types",id="c") @SpecAssertion(section="decorator_resolution",id="aa") @SpecAssertion(section="decorator",id="a") @SpecAssertion(section="bean_discovery_steps",id="g") public void testDecoratorIsManagedBean()
-
testDecoratedTypes
@SpecAssertion(section="decorator_bean",id="b") @SpecAssertion(section="decorator_bean",id="c") @SpecAssertion(section="decorator",id="b") @SpecAssertion(section="bm_decorator_resolution",id="a") @SpecAssertion(section="bm_decorator_resolution",id="b") public void testDecoratedTypes()
-
testDelegateInjectionPoint
@SpecAssertion(section="delegate_attribute",id="a") @SpecAssertion(section="decorator",id="c") public void testDelegateInjectionPoint()
-
testDecoratorDoesNotImplementDelegateType
@SpecAssertion(section="decorated_types", id="b") public void testDecoratorDoesNotImplementDelegateType()
-
testDecoratorOrdering
@SpecAssertion(section="enabled_decorators_bean_archive",id="b") @SpecAssertion(section="decorator_resolution",id="aa") @SpecAssertion(section="bm_decorator_resolution",id="a") public void testDecoratorOrdering()
-
testNonEnabledDecoratorNotResolved
@SpecAssertion(section="enabled_decorators_bean_archive", id="a") public void testNonEnabledDecoratorNotResolved()
-
testInstanceOfDecoratorForEachEnabled
@SpecAssertion(section="decorator", id="d") public void testInstanceOfDecoratorForEachEnabled()
-
testDuplicateBindingsOnResolveDecoratorsFails
@SpecAssertion(section="bm_decorator_resolution", id="c") public void testDuplicateBindingsOnResolveDecoratorsFails()
-
testNonBindingsOnResolveDecoratorsFails
@SpecAssertion(section="bm_decorator_resolution", id="d") public void testNonBindingsOnResolveDecoratorsFails()
-
testEmptyTypeSetOnResolveDecoratorsFails
@SpecAssertion(section="bm_decorator_resolution", id="e") public void testEmptyTypeSetOnResolveDecoratorsFails()
-
testAbstractDecoratorNotImplementingMethodOfDecoratedType
@SpecAssertion(section="decorator_bean",id="d") @SpecAssertion(section="decorated_types",id="c") @SpecAssertion(section="decorated_types",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-
-
-