@SpecVersion(spec="cdi",
version="20091101")
public class PassivatingContextTest
extends AbstractTest
beanManager| Constructor and Description |
|---|
PassivatingContextTest() |
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.shrinkwrap.api.spec.WebArchive |
createTestArchive() |
static boolean |
isSerializable(Class<?> clazz) |
void |
testBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK() |
void |
testInjectionOfDependentPrimitiveProductIntoNormalBean() |
void |
testInjectionOfDependentSerializableProductIntoNormalBean() |
void |
testManagedBeanWithSerializableDecoratorOK() |
void |
testManagedBeanWithSerializableImplementationClassOK() |
void |
testManagedBeanWithSerializableInterceptorClassOK() |
void |
testNonSerializableProducerFieldDeclaredPassivatingThrowsIllegalProductException() |
void |
testPassivatingScopeProducerMethodReturnsUnserializableObjectNotOk() |
void |
testPassivationCapableProducerFieldIsOK() |
void |
testPassivationCapableProducerMethodIsOK() |
void |
testPassivationOccurs() |
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()
@SpecAssertions(value={@SpecAssertion(section="passivation_capable",id="ba"),@SpecAssertion(section="passivating_scopes",id="a")})
public void testManagedBeanWithSerializableImplementationClassOK()
@SpecAssertion(section="passivation_capable",
id="bb")
public void testManagedBeanWithSerializableInterceptorClassOK()
@SpecAssertion(section="passivation_capable",
id="bc")
public void testManagedBeanWithSerializableDecoratorOK()
@SpecAssertion(section="passivation_capable",
id="ca")
public void testPassivationCapableProducerMethodIsOK()
@SpecAssertion(section="passivation_capable",
id="da")
public void testPassivationCapableProducerFieldIsOK()
@SpecAssertion(section="passivation_capable_dependency",
id="c")
public void testInjectionOfDependentPrimitiveProductIntoNormalBean()
@SpecAssertion(section="passivation_capable_dependency",
id="c")
public void testInjectionOfDependentSerializableProductIntoNormalBean()
@SpecAssertions(value=@SpecAssertion(section="passivating_scope",id="a"))
public void testPassivationOccurs()
throws IOException,
ClassNotFoundException
IOExceptionClassNotFoundException@SpecAssertions(value={@SpecAssertion(section="passivation_validation",id="ab"),@SpecAssertion(section="passivation_capable_injection_points",id="a")})
public void testBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK()
@SpecAssertion(section="passivation_validation",
id="ea")
public void testPassivatingScopeProducerMethodReturnsUnserializableObjectNotOk()
@SpecAssertion(section="passivation_validation",
id="eb")
public void testNonSerializableProducerFieldDeclaredPassivatingThrowsIllegalProductException()
public static boolean isSerializable(Class<?> clazz)
Copyright © 2008-2013 Seam Framework. All Rights Reserved.