@SpecVersion(spec="cdi",
version="2.0-EDR2")
public class DecoratorDefinitionTest
extends AbstractTest
beanManager| Constructor and Description |
|---|
DecoratorDefinitionTest() |
| Modifier and Type | Method and Description |
|---|---|
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() |
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
@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()
@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()
@SpecAssertion(section="delegate_attribute",id="a") @SpecAssertion(section="decorator",id="c") public void testDelegateInjectionPoint()
@SpecAssertion(section="decorated_types",
id="b")
public void testDecoratorDoesNotImplementDelegateType()
@SpecAssertion(section="enabled_decorators_bean_archive",id="b") @SpecAssertion(section="decorator_resolution",id="aa") @SpecAssertion(section="bm_decorator_resolution",id="a") public void testDecoratorOrdering()
@SpecAssertion(section="enabled_decorators_bean_archive",
id="a")
public void testNonEnabledDecoratorNotResolved()
@SpecAssertion(section="decorator",
id="d")
public void testInstanceOfDecoratorForEachEnabled()
@SpecAssertion(section="bm_decorator_resolution",
id="c")
public void testDuplicateBindingsOnResolveDecoratorsFails()
@SpecAssertion(section="bm_decorator_resolution",
id="d")
public void testNonBindingsOnResolveDecoratorsFails()
@SpecAssertion(section="bm_decorator_resolution",
id="e")
public void testEmptyTypeSetOnResolveDecoratorsFails()
@SpecAssertion(section="decorator_bean",id="d") @SpecAssertion(section="decorated_types",id="c") @SpecAssertion(section="decorated_types",id="ca") public void testAbstractDecoratorNotImplementingMethodOfDecoratedType(BankAccount account)
account - Copyright © 2008–2016 CDI TCK. All rights reserved.