@SpecVersion(spec="cdi",
version="2.0-EDR2")
public class Specialization01Test
extends AbstractTest
Alternative. Verifies that a bean is not specialized unless the specializing alternative is
enabled.| Modifier and Type | Field and Description |
|---|---|
static String |
TEST_JAR |
beanManager| Constructor and Description |
|---|
Specialization01Test() |
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.shrinkwrap.api.spec.WebArchive |
createTestArchive() |
void |
testEvent() |
void |
testNotEnabledAlternativeDoesNotSpecialize() |
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatchespublic static String TEST_JAR
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
@SpecAssertion(section="declaring_alternative",id="aa") @SpecAssertion(section="specialize_managed_bean",id="ac") public void testNotEnabledAlternativeDoesNotSpecialize()
@SpecAssertions(value=@SpecAssertion(section="observes",id="a")) public void testEvent()
Copyright © 2008–2016 CDI TCK. All rights reserved.