org.jboss.cdi.tck.tests.decorators.definition
Class DecoratorDefinitionTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.jboss.cdi.tck.AbstractTest
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
| Fields inherited from class org.jboss.arquillian.testng.Arquillian |
ARQUILLIAN_DATA_PROVIDER |
| 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 |
DecoratorDefinitionTest
public DecoratorDefinitionTest()
createTestArchive
@Deployment
public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
testDecoratorIsManagedBean
@SpecAssertions(value={@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",id="kc")})
public void testDecoratorIsManagedBean()
testDecoratedTypes
@SpecAssertions(value={@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
@SpecAssertions(value={@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
@SpecAssertions(value={@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
@SpecAssertions(value={@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 -
Copyright © 2008-2013 Seam Framework. All Rights Reserved.