@SpecVersion(spec="cdi",
version="2.0-EDR2")
public class DisposalMethodDefinitionTest
extends AbstractTest
beanManager| Constructor and Description |
|---|
DisposalMethodDefinitionTest() |
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.shrinkwrap.api.spec.WebArchive |
createTestArchive() |
void |
testBindingTypesAppliedToDisposalMethodParameters() |
void |
testDisposalMethodCalledForProducerField()
Tests that a disposal method can be bound to a product of a producer field.
|
void |
testDisposalMethodForMultipleProducerMethods() |
void |
testDisposalMethodOnNonBean() |
void |
testDisposalMethodParametersGetInjected()
In addition to the disposed parameter, a disposal method may declare additional parameters, which may also specify
bindings.
|
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="method_constructor_parameter_qualifiers",id="c") @SpecAssertion(section="disposer_method",id="b") @SpecAssertion(section="disposer_method",id="c") @SpecAssertion(section="disposer_method",id="e") @SpecAssertion(section="disposer_method_disposed_parameter",id="ba") @SpecAssertion(section="declaring_disposer_method",id="a") @SpecAssertion(section="declaring_disposer_method",id="ba") @SpecAssertion(section="disposer_method_resolution",id="aa") @SpecAssertion(section="producer_or_disposer_methods_invocation",id="b")
public void testBindingTypesAppliedToDisposalMethodParameters()
throws Exception
Exception@SpecAssertion(section="disposer_method",id="aa") @SpecAssertion(section="disposer_method_disposed_parameter",id="ba")
public void testDisposalMethodOnNonBean()
throws Exception
Exception@SpecAssertion(section="declaring_disposer_method",id="h") @SpecAssertion(section="injection_point_default_qualifier",id="a") @SpecAssertion(section="producer_or_disposer_methods_invocation",id="e")
public void testDisposalMethodParametersGetInjected()
throws Exception
Exception@SpecAssertion(section="disposer_method_disposed_parameter",
id="da")
public void testDisposalMethodForMultipleProducerMethods()
throws Exception
Exception@SpecAssertion(section="disposer_method_resolution",id="ab") @SpecAssertion(section="producer_field_lifecycle",id="o")
public void testDisposalMethodCalledForProducerField()
throws Exception
ExceptionCopyright © 2008–2016 CDI TCK. All rights reserved.