Class DestroyingNormalScopedInstanceTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.jboss.cdi.tck.AbstractTest
-
- org.jboss.cdi.tck.tests.full.lookup.dynamic.destroy.normal.DestroyingNormalScopedInstanceTest
-
- All Implemented Interfaces:
org.testng.IHookable,org.testng.ITestNGListener
@SpecVersion(spec="cdi", version="2.0") public class DestroyingNormalScopedInstanceTest extends AbstractTestTests for https://issues.jboss.org/browse/CDI-139This test was originally part of the Weld test suite.
- Author:
- Jozef Hartinger, Martin Kouba
-
-
Field Summary
-
Fields inherited from class org.jboss.cdi.tck.AbstractTest
beanManager
-
-
Constructor Summary
Constructors Constructor Description DestroyingNormalScopedInstanceTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.shrinkwrap.api.spec.WebArchivecreateTestArchive()voidtestContextDestroyCalled(jakarta.enterprise.inject.Instance<AlterableComponent> instance)voidtestCustomScopedComponent(jakarta.enterprise.inject.Instance<AlterableComponent> instance)voidtestUnsupportedOperationExceptionThrownIfUnderlyingContextNotAlterable(jakarta.enterprise.inject.Instance<NonAlterableComponent> instance, CustomScopeExtension extension)-
Methods inherited from class org.jboss.cdi.tck.AbstractTest
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentBeanContainer, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches
-
-
-
-
Method Detail
-
createTestArchive
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
-
testCustomScopedComponent
@SpecAssertions(@SpecAssertion(section="dynamic_lookup",id="o")) public void testCustomScopedComponent(jakarta.enterprise.inject.Instance<AlterableComponent> instance)
-
testUnsupportedOperationExceptionThrownIfUnderlyingContextNotAlterable
@SpecAssertions(@SpecAssertion(section="dynamic_lookup",id="p")) public void testUnsupportedOperationExceptionThrownIfUnderlyingContextNotAlterable(jakarta.enterprise.inject.Instance<NonAlterableComponent> instance, CustomScopeExtension extension)
-
testContextDestroyCalled
@SpecAssertions(@SpecAssertion(section="dynamic_lookup",id="o")) public void testContextDestroyCalled(jakarta.enterprise.inject.Instance<AlterableComponent> instance)
-
-