|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.webbeans.tck.AbstractTest
org.jboss.webbeans.tck.unit.context.dependent.DependentContextTest
public class DependentContextTest
Spec version: PRD2
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jboss.webbeans.tck.AbstractTest |
|---|
AbstractTest.RunInDependentContext |
| Field Summary |
|---|
| Fields inherited from class org.jboss.webbeans.tck.AbstractTest |
|---|
BUILT_IN_BEANS, manager, visited |
| Constructor Summary | |
|---|---|
DependentContextTest()
|
|
| Method Summary | |
|---|---|
void |
testContextGetWithCreateFalseReturnsNull()
Every invocation of the get() operation of the Context object for the @Dependent scope with the value false for the create parameter returns a null value |
void |
testContextGetWithCreateTrueReturnsNewInstance()
Every invocation of the get() operation of the Context object for the @Dependent scope with the value true for the create parameter returns a new instance of the given Web Bean |
void |
testContextIsActiveDuringBeanCreation()
when the Web Bean manager is creating or destroying a Web Bean instance or injecting its dependencies, or |
void |
testContextIsActiveDuringBeanDestruction()
when the Web Bean manager is creating or destroying a Web Bean instance or injecting its dependencies, or |
void |
testContextIsActiveDuringEJBDependencyInjection()
when the Web Bean manager is injecting dependencies of an EJB bean or Servlet or when an EJB bean @PostConstruct or @PreDestroy callback is invoked by the EJB container |
void |
testContextIsActiveDuringEJBPostConstruct()
when the Web Bean manager is injecting dependencies of an EJB bean or Servlet or when an EJB bean @PostConstruct or @PreDestroy callback is invoked by the EJB container |
void |
testContextIsActiveDuringEJBPreDestroy()
when the Web Bean manager is injecting dependencies of an EJB bean or Servlet or when an EJB bean @PostConstruct or @PreDestroy callback is invoked by the EJB container |
void |
testContextIsActiveDuringInjection()
when the Web Bean manager is creating or destroying a Web Bean instance or injecting its dependencies, or |
void |
testContextIsActiveDuringServletDependencyInjection()
when the Web Bean manager is injecting dependencies of an EJB bean or Servlet or when an EJB bean @PostConstruct or @PreDestroy callback is invoked by the EJB container |
void |
testContextIsActiveWhenEvaluatingElExpression()
while a Unified EL expression is evaluated, or |
void |
testContextIsActiveWhenInvokingDisposalMethod()
when an instance of a Web Bean with scope @Dependent is created by the Web Bean manager to receive a producer method, producer field, disposal method or observer method invocation, or |
void |
testContextIsActiveWhenInvokingObserverMethod()
when an instance of a Web Bean with scope @Dependent is created by the Web Bean manager to receive a producer method, producer field, disposal method or observer method invocation, or |
void |
testContextIsActiveWhenInvokingProducerField()
when an instance of a Web Bean with scope @Dependent is created by the Web Bean manager to receive a producer method, producer field, disposal method or observer method invocation, or |
void |
testContextIsActiveWhenInvokingProducerMethod()
when an instance of a Web Bean with scope @Dependent is created by the Web Bean manager to receive a producer method, producer field, disposal method or observer method invocation, or |
void |
testContextIsInactive()
The @Dependent scope is inactive except: |
void |
testDependentsDestroyedWhenDisposalMethodCompletes()
destroy any @Dependent scoped contextual instance created to receive a producer method, producer field, disposal method or observer method invocation when the invocation completes |
void |
testDependentsDestroyedWhenElEvaluationCompletes()
destroy all @Dependent scoped contextual instances created during an EL expression evaluation when the evaluation completes, and |
void |
testDependentsDestroyedWhenObserverMethodEvaluationCompletes()
destroy any @Dependent scoped contextual instance created to receive a producer method, producer field, disposal method or observer method invocation when the invocation completes |
void |
testDependentsDestroyedWhenProducerFieldCompletes()
destroy any @Dependent scoped contextual instance created to receive a producer method, producer field, disposal method or observer method invocation when the invocation completes |
void |
testDependentsDestroyedWhenProducerMethodCompletes()
destroy any @Dependent scoped contextual instance created to receive a producer method, producer field, disposal method or observer method invocation when the invocation completes |
void |
testDestroyingEjbDestroysDependents()
destroy all dependent objects of an EJB bean or Servlet when the EJB bean or Servlet is destroyed, |
void |
testDestroyingParentDestroysDependents()
destroy all dependent objects of a Web Bean instance when the instance is destroyed, |
void |
testDestroyingServletDestroysDependents()
destroy all dependent objects of an EJB bean or Servlet when the EJB bean or Servlet is destroyed, |
void |
testEjbBeanMayCreateInstanceFromInitializer()
An EJB bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from initializer methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors for these methods. |
void |
testEjbBeanMayCreateInstanceFromInterceptorOfActiveMethod()
An EJB bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from initializer methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors for these methods. |
void |
testEjbBeanMayCreateInstanceFromPostConstruct()
An EJB bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from initializer methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors for these methods. |
void |
testEjbBeanMayCreateInstanceFromPreDestroy()
An EJB bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from initializer methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors for these methods. |
void |
testInstanceNotSharedBetweenInjectionPoints()
No injected instance of the (@Dependent-scoped) Web Bean is ever shared between multiple injection points. |
void |
testInstanceUsedForDisposalMethodNotShared()
Any instance of the (@Dependent-scoped) Web Bean that receives a producer method, producer field, disposal method or observer method invocation exists to service that invocation only |
void |
testInstanceUsedForElEvaluationNotShared()
Any instance of the (@Dependent-scoped) Web Bean that is used to evaluate a Unified EL expression exists to service that evaluation only. |
void |
testInstanceUsedForObserverMethodNotShared()
Any instance of the (@Dependent-scoped) Web Bean that receives a producer method, producer field, disposal method or observer method invocation exists to service that invocation only |
void |
testInstanceUsedForProducerFieldNotShared()
Any instance of the (@Dependent-scoped) Web Bean that receives a producer method, producer field, disposal method or observer method invocation exists to service that invocation only |
void |
testInstanceUsedForProducerMethodNotShared()
Any instance of the (@Dependent-scoped) Web Bean that receives a producer method, producer field, disposal method or observer method invocation exists to service that invocation only |
void |
testServletBeanMayCreateInstanceFromInitializer()
A Servlet may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from initializer methods |
void |
testWebBeanMayCreateInstanceFromConstructor()
A Web Bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from the Web Bean constructor, from the Web Bean remove method, from initializer methods, from producer methods, from disposal methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors or decorators for any of these methods |
void |
testWebBeanMayCreateInstanceFromDecoratorOfActiveMethod()
A Web Bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from the Web Bean constructor, from the Web Bean remove method, from initializer methods, from producer methods, from disposal methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors or decorators for any of these methods |
void |
testWebBeanMayCreateInstanceFromDisposalMethod()
A Web Bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from the Web Bean constructor, from the Web Bean remove method, from initializer methods, from producer methods, from disposal methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors or decorators for any of these methods |
void |
testWebBeanMayCreateInstanceFromInitializerMethod()
A Web Bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from the Web Bean constructor, from the Web Bean remove method, from initializer methods, from producer methods, from disposal methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors or decorators for any of these methods |
void |
testWebBeanMayCreateInstanceFromInterceptorOfActiveMethod()
A Web Bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from the Web Bean constructor, from the Web Bean remove method, from initializer methods, from producer methods, from disposal methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors or decorators for any of these methods |
void |
testWebBeanMayCreateInstanceFromPostConstruct()
A Web Bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from the Web Bean constructor, from the Web Bean remove method, from initializer methods, from producer methods, from disposal methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors or decorators for any of these methods |
void |
testWebBeanMayCreateInstanceFromPreDestroy()
A Web Bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from the Web Bean constructor, from the Web Bean remove method, from initializer methods, from producer methods, from disposal methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors or decorators for any of these methods |
void |
testWebBeanMayCreateInstanceFromProducerMethod()
A Web Bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from the Web Bean constructor, from the Web Bean remove method, from initializer methods, from producer methods, from disposal methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors or decorators for any of these methods |
void |
testWebBeanMayCreateInstanceFromRemoveMethod()
A Web Bean may create an instance of a Web Bean with scope type @Dependent by calling Manager.getInstance() from the Web Bean constructor, from the Web Bean remove method, from initializer methods, from producer methods, from disposal methods, from @PostConstruct and @PreDestroy callbacks and from Web Beans interceptors or decorators for any of these methods |
| Methods inherited from class org.jboss.webbeans.tck.AbstractTest |
|---|
activateDependentContext, after, before, createEnterpriseBean, createProducerFieldBean, createProducerMethodBean, createSimpleBean, deactivateDependentContext, deployBeans, deserialize, getEnabledDeploymentTypes, getStandardDeploymentTypes, mockCreationalContext, serialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DependentContextTest()
| Method Detail |
|---|
@SpecAssertion(section="8.3") public void testInstanceNotSharedBetweenInjectionPoints()
@SpecAssertion(section="8.3")
public void testInstanceUsedForElEvaluationNotShared()
throws java.lang.Exception
java.lang.Exception
@SpecAssertion(section="8.3")
public void testInstanceUsedForProducerMethodNotShared()
throws java.lang.Exception
java.lang.Exception
@SpecAssertion(section="8.3")
public void testInstanceUsedForProducerFieldNotShared()
throws java.lang.Exception
java.lang.Exception@SpecAssertion(section="8.3") public void testInstanceUsedForDisposalMethodNotShared()
@SpecAssertion(section="8.3") public void testInstanceUsedForObserverMethodNotShared()
@SpecAssertion(section="8.3")
public void testContextGetWithCreateTrueReturnsNewInstance()
throws java.lang.Exception
java.lang.Exception
@SpecAssertion(section="8.3")
public void testContextGetWithCreateFalseReturnsNull()
throws java.lang.Exception
java.lang.Exception@SpecAssertion(section="8.3") public void testContextIsInactive()
@SpecAssertion(section="8.3") public void testContextIsActiveWhenInvokingProducerMethod()
@SpecAssertion(section="8.3") public void testContextIsActiveWhenInvokingProducerField()
@SpecAssertion(section="8.3") public void testContextIsActiveWhenInvokingDisposalMethod()
@SpecAssertion(section="8.3") public void testContextIsActiveWhenInvokingObserverMethod()
@SpecAssertion(section="8.3") public void testContextIsActiveWhenEvaluatingElExpression()
@SpecAssertion(section="8.3") public void testContextIsActiveDuringBeanCreation()
@SpecAssertion(section="8.3") public void testContextIsActiveDuringBeanDestruction()
@SpecAssertion(section="8.4") public void testContextIsActiveDuringInjection()
@SpecAssertion(section="8.3") public void testContextIsActiveDuringEJBDependencyInjection()
@SpecAssertion(section="8.3") public void testContextIsActiveDuringServletDependencyInjection()
@SpecAssertion(section="8.3") public void testContextIsActiveDuringEJBPostConstruct()
@SpecAssertion(section="8.3") public void testContextIsActiveDuringEJBPreDestroy()
@SpecAssertion(section="8.3.1") public void testWebBeanMayCreateInstanceFromConstructor()
@SpecAssertion(section="8.3.1") public void testWebBeanMayCreateInstanceFromRemoveMethod()
@SpecAssertion(section="8.3.1") public void testWebBeanMayCreateInstanceFromInitializerMethod()
@SpecAssertion(section="8.3.1") public void testWebBeanMayCreateInstanceFromProducerMethod()
@SpecAssertion(section="8.3.1") public void testWebBeanMayCreateInstanceFromDisposalMethod()
@SpecAssertion(section="8.3.1") public void testWebBeanMayCreateInstanceFromPreDestroy()
@SpecAssertion(section="8.3.1") public void testWebBeanMayCreateInstanceFromPostConstruct()
@SpecAssertion(section="8.3.1") public void testWebBeanMayCreateInstanceFromInterceptorOfActiveMethod()
@SpecAssertion(section="8.3.1") public void testWebBeanMayCreateInstanceFromDecoratorOfActiveMethod()
@SpecAssertion(section="8.3.1") public void testEjbBeanMayCreateInstanceFromInitializer()
@SpecAssertion(section="8.3.1") public void testEjbBeanMayCreateInstanceFromPostConstruct()
@SpecAssertion(section="8.3.1") public void testEjbBeanMayCreateInstanceFromPreDestroy()
@SpecAssertion(section="8.3.1") public void testEjbBeanMayCreateInstanceFromInterceptorOfActiveMethod()
@SpecAssertion(section="8.3.1") public void testServletBeanMayCreateInstanceFromInitializer()
@SpecAssertion(section="8.3.2") public void testDestroyingParentDestroysDependents()
@SpecAssertion(section="8.3.2") public void testDestroyingEjbDestroysDependents()
@SpecAssertion(section="8.3.2") public void testDestroyingServletDestroysDependents()
@SpecAssertion(section="8.3.2") public void testDependentsDestroyedWhenElEvaluationCompletes()
@SpecAssertion(section="8.3.2") public void testDependentsDestroyedWhenProducerMethodCompletes()
@SpecAssertion(section="8.3.2") public void testDependentsDestroyedWhenProducerFieldCompletes()
@SpecAssertion(section="8.3.2") public void testDependentsDestroyedWhenDisposalMethodCompletes()
@SpecAssertion(section="8.3") public void testDependentsDestroyedWhenObserverMethodEvaluationCompletes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||