org.jboss.webbeans.tck.unit.implementation.simple
Class NewSimpleBeanTest

java.lang.Object
  extended by org.jboss.webbeans.tck.AbstractTest
      extended by org.jboss.webbeans.tck.unit.implementation.simple.NewSimpleBeanTest

public class NewSimpleBeanTest
extends AbstractTest

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
NewSimpleBeanTest()
           
 
Method Summary
 void initNewBean()
           
 void testForEachSimpleBeanANewBeanExists()
           
 void testNewAnnotationCannotAppearInConjunctionWithOtherBindingType()
          If the @New binding type appears in conjunction with some other binding type, or is specified for a field or parameter of a type which does not satisfy the definition of a simple Web Bean implementation class or enterprise Web Bean implementation class, a DefinitionException is thrown by the container at deployment time.
 void testNewAnnotationCannotBeAppliedToNonWebBeanImplementationClass()
          If the @New binding type appears in conjunction with some other binding type, or is specified for a field or parameter of a type which does not satisfy the definition of a simple Web Bean implementation class or enterprise Web Bean implementation class, a DefinitionException is thrown by the container at deployment time.
 void testNewAnnotationCannotBeExplicitlyDeclared()
          No Web Bean defined using annotations or XML may explicitly declare @New as a binding type
 void testNewAnnotationMayBeAppliedToConstructorMethodParameter()
          The @New annotation or element may be applied to any field of a Web Bean implementation class or to any parameter of a producer method, initializer method, disposal method or Web Bean constructor where the type of the field or parameter is a concrete Java type which satisfies the requirements of a simple Web Bean implementation class or enterprise Web Bean implementation class.
 void testNewAnnotationMayBeAppliedToField()
          The @New annotation or element may be applied to any field of a Web Bean implementation class or to any parameter of a producer method, initializer method, disposal method or Web Bean constructor where the type of the field or parameter is a concrete Java type which satisfies the requirements of a simple Web Bean implementation class or enterprise Web Bean implementation class.
 void testNewAnnotationMayBeAppliedToInitializerMethodParameter()
          The @New annotation or element may be applied to any field of a Web Bean implementation class or to any parameter of a producer method, initializer method, disposal method or Web Bean constructor where the type of the field or parameter is a concrete Java type which satisfies the requirements of a simple Web Bean implementation class or enterprise Web Bean implementation class.
 void testNewAnnotationMayBeAppliedToProducerMethodParameter()
          The @New annotation or element may be applied to any field of a Web Bean implementation class or to any parameter of a producer method, initializer method, disposal method or Web Bean constructor where the type of the field or parameter is a concrete Java type which satisfies the requirements of a simple Web Bean implementation class or enterprise Web Bean implementation class.
 void testNewBeanHasNoDecorators()
          Furthermore, this Web Bean: � has the same Web Bean constructor, initializer methods and injected fields as a Web Bean defined using annotations� that is, it has any Web Bean constructor, initializer method or injected field declared by annotations that appear on the implementation class, � has no observer methods, producer methods or fields or disposal methods, � has the same interceptors as a Web Bean defined using annotations�that is, it has all the interceptor binding types declared by annotations that appear on the implementation class, and � has no decorators.
 void testNewBeanHasNoDisposalMethods()
          Furthermore, this Web Bean: � has the same Web Bean constructor, initializer methods and injected fields as a Web Bean defined using annotations� that is, it has any Web Bean constructor, initializer method or injected field declared by annotations that appear on the implementation class, � has no observer methods, producer methods or fields or disposal methods, � has the same interceptors as a Web Bean defined using annotations�that is, it has all the interceptor binding types declared by annotations that appear on the implementation class, and � has no decorators.
 void testNewBeanHasNoObservers()
          Furthermore, this Web Bean: � has the same Web Bean constructor, initializer methods and injected fields as a Web Bean defined using annotations� that is, it has any Web Bean constructor, initializer method or injected field declared by annotations that appear on the implementation class, � has no observer methods, producer methods or fields or disposal methods, � has the same interceptors as a Web Bean defined using annotations�that is, it has all the interceptor binding types declared by annotations that appear on the implementation class, and � has no decorators.
 void testNewBeanHasNoProducerFields()
          Furthermore, this Web Bean: � has the same Web Bean constructor, initializer methods and injected fields as a Web Bean defined using annotations� that is, it has any Web Bean constructor, initializer method or injected field declared by annotations that appear on the implementation class, � has no observer methods, producer methods or fields or disposal methods, � has the same interceptors as a Web Bean defined using annotations�that is, it has all the interceptor binding types declared by annotations that appear on the implementation class, and � has no decorators.
 void testNewBeanHasNoProducerMethods()
          Furthermore, this Web Bean: � has the same Web Bean constructor, initializer methods and injected fields as a Web Bean defined using annotations� that is, it has any Web Bean constructor, initializer method or injected field declared by annotations that appear on the implementation class, � has no observer methods, producer methods or fields or disposal methods, � has the same interceptors as a Web Bean defined using annotations�that is, it has all the interceptor binding types declared by annotations that appear on the implementation class, and � has no decorators.
 void testNewBeanHasNoStereotypes()
          When the built-in binding type @New is applied to an injection point, a Web Bean is implicitly defined with: � scope @Dependent, � deployment type
 void testNewBeanHasNoWebBeanName()
          When the built-in binding type @New is applied to an injection point, a Web Bean is implicitly defined with: � scope @Dependent, � deployment type
 void testNewBeanHasSameInterceptorMethodsAsWrappedBean()
          Furthermore, this Web Bean: � has the same Web Bean constructor, initializer methods and injected fields as a Web Bean defined using annotations� that is, it has any Web Bean constructor, initializer method or injected field declared by annotations that appear on the implementation class, � has no observer methods, producer methods or fields or disposal methods, � has the same interceptors as a Web Bean defined using annotations�that is, it has all the interceptor binding types declared by annotations that appear on the implementation class, and � has no decorators.
 void testNewBeanIsDependentScoped()
          When the built-in binding type @New is applied to an injection point, a Web Bean is implicitly defined with: � scope @Dependent, � deployment type
 void testNewBeanIsHasOnlyNewBinding()
          When the built-in binding type @New is applied to an injection point, a Web Bean is implicitly defined with: � scope @Dependent, � deployment type
 void testNewBeanIsOfStandardDeploymentType()
          When the built-in binding type @New is applied to an injection point, a Web Bean is implicitly defined with: � scope @Dependent, � deployment type
 
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

NewSimpleBeanTest

public NewSimpleBeanTest()
Method Detail

initNewBean

public void initNewBean()

testNewBeanIsDependentScoped

@SpecAssertion(section="3.2.5")
public void testNewBeanIsDependentScoped()
When the built-in binding type @New is applied to an injection point, a Web Bean is implicitly defined with: � scope @Dependent, � deployment type


testNewBeanIsOfStandardDeploymentType

@SpecAssertion(section="3.2.5")
public void testNewBeanIsOfStandardDeploymentType()
When the built-in binding type @New is applied to an injection point, a Web Bean is implicitly defined with: � scope @Dependent, � deployment type


testNewBeanIsHasOnlyNewBinding

@SpecAssertion(section="3.2.5")
public void testNewBeanIsHasOnlyNewBinding()
When the built-in binding type @New is applied to an injection point, a Web Bean is implicitly defined with: � scope @Dependent, � deployment type


testNewBeanHasNoWebBeanName

@SpecAssertion(section="3.2.5")
public void testNewBeanHasNoWebBeanName()
When the built-in binding type @New is applied to an injection point, a Web Bean is implicitly defined with: � scope @Dependent, � deployment type


testNewBeanHasNoStereotypes

@SpecAssertion(section="3.2.5")
public void testNewBeanHasNoStereotypes()
When the built-in binding type @New is applied to an injection point, a Web Bean is implicitly defined with: � scope @Dependent, � deployment type


testNewBeanHasNoObservers

@SpecAssertion(section="3.2.5")
public void testNewBeanHasNoObservers()
Furthermore, this Web Bean: � has the same Web Bean constructor, initializer methods and injected fields as a Web Bean defined using annotations� that is, it has any Web Bean constructor, initializer method or injected field declared by annotations that appear on the implementation class, � has no observer methods, producer methods or fields or disposal methods, � has the same interceptors as a Web Bean defined using annotations�that is, it has all the interceptor binding types declared by annotations that appear on the implementation class, and � has no decorators.


testNewBeanHasNoProducerFields

@SpecAssertion(section="3.2.5")
public void testNewBeanHasNoProducerFields()
Furthermore, this Web Bean: � has the same Web Bean constructor, initializer methods and injected fields as a Web Bean defined using annotations� that is, it has any Web Bean constructor, initializer method or injected field declared by annotations that appear on the implementation class, � has no observer methods, producer methods or fields or disposal methods, � has the same interceptors as a Web Bean defined using annotations�that is, it has all the interceptor binding types declared by annotations that appear on the implementation class, and � has no decorators.


testNewBeanHasNoProducerMethods

@SpecAssertion(section="3.2.5")
public void testNewBeanHasNoProducerMethods()
Furthermore, this Web Bean: � has the same Web Bean constructor, initializer methods and injected fields as a Web Bean defined using annotations� that is, it has any Web Bean constructor, initializer method or injected field declared by annotations that appear on the implementation class, � has no observer methods, producer methods or fields or disposal methods, � has the same interceptors as a Web Bean defined using annotations�that is, it has all the interceptor binding types declared by annotations that appear on the implementation class, and � has no decorators.


testNewBeanHasNoDisposalMethods

@SpecAssertion(section="3.2.5")
public void testNewBeanHasNoDisposalMethods()
Furthermore, this Web Bean: � has the same Web Bean constructor, initializer methods and injected fields as a Web Bean defined using annotations� that is, it has any Web Bean constructor, initializer method or injected field declared by annotations that appear on the implementation class, � has no observer methods, producer methods or fields or disposal methods, � has the same interceptors as a Web Bean defined using annotations�that is, it has all the interceptor binding types declared by annotations that appear on the implementation class, and � has no decorators.


testNewBeanHasSameInterceptorMethodsAsWrappedBean

@SpecAssertion(section="3.2.5")
public void testNewBeanHasSameInterceptorMethodsAsWrappedBean()
Furthermore, this Web Bean: � has the same Web Bean constructor, initializer methods and injected fields as a Web Bean defined using annotations� that is, it has any Web Bean constructor, initializer method or injected field declared by annotations that appear on the implementation class, � has no observer methods, producer methods or fields or disposal methods, � has the same interceptors as a Web Bean defined using annotations�that is, it has all the interceptor binding types declared by annotations that appear on the implementation class, and � has no decorators.


testNewBeanHasNoDecorators

@SpecAssertion(section="3.2.5")
public void testNewBeanHasNoDecorators()
Furthermore, this Web Bean: � has the same Web Bean constructor, initializer methods and injected fields as a Web Bean defined using annotations� that is, it has any Web Bean constructor, initializer method or injected field declared by annotations that appear on the implementation class, � has no observer methods, producer methods or fields or disposal methods, � has the same interceptors as a Web Bean defined using annotations�that is, it has all the interceptor binding types declared by annotations that appear on the implementation class, and � has no decorators.


testNewAnnotationMayBeAppliedToField

@SpecAssertion(section="3.2.5")
public void testNewAnnotationMayBeAppliedToField()
The @New annotation or element may be applied to any field of a Web Bean implementation class or to any parameter of a producer method, initializer method, disposal method or Web Bean constructor where the type of the field or parameter is a concrete Java type which satisfies the requirements of a simple Web Bean implementation class or enterprise Web Bean implementation class.


testNewAnnotationMayBeAppliedToProducerMethodParameter

@SpecAssertion(section="3.2.5")
public void testNewAnnotationMayBeAppliedToProducerMethodParameter()
The @New annotation or element may be applied to any field of a Web Bean implementation class or to any parameter of a producer method, initializer method, disposal method or Web Bean constructor where the type of the field or parameter is a concrete Java type which satisfies the requirements of a simple Web Bean implementation class or enterprise Web Bean implementation class.


testNewAnnotationMayBeAppliedToInitializerMethodParameter

@SpecAssertion(section="3.2.5")
public void testNewAnnotationMayBeAppliedToInitializerMethodParameter()
The @New annotation or element may be applied to any field of a Web Bean implementation class or to any parameter of a producer method, initializer method, disposal method or Web Bean constructor where the type of the field or parameter is a concrete Java type which satisfies the requirements of a simple Web Bean implementation class or enterprise Web Bean implementation class.


testNewAnnotationMayBeAppliedToConstructorMethodParameter

@SpecAssertion(section="3.2.5")
public void testNewAnnotationMayBeAppliedToConstructorMethodParameter()
The @New annotation or element may be applied to any field of a Web Bean implementation class or to any parameter of a producer method, initializer method, disposal method or Web Bean constructor where the type of the field or parameter is a concrete Java type which satisfies the requirements of a simple Web Bean implementation class or enterprise Web Bean implementation class.


testNewAnnotationCannotAppearInConjunctionWithOtherBindingType

@SpecAssertion(section="3.2.5")
public void testNewAnnotationCannotAppearInConjunctionWithOtherBindingType()
If the @New binding type appears in conjunction with some other binding type, or is specified for a field or parameter of a type which does not satisfy the definition of a simple Web Bean implementation class or enterprise Web Bean implementation class, a DefinitionException is thrown by the container at deployment time.


testNewAnnotationCannotBeAppliedToNonWebBeanImplementationClass

@SpecAssertion(section="3.2.5")
public void testNewAnnotationCannotBeAppliedToNonWebBeanImplementationClass()
If the @New binding type appears in conjunction with some other binding type, or is specified for a field or parameter of a type which does not satisfy the definition of a simple Web Bean implementation class or enterprise Web Bean implementation class, a DefinitionException is thrown by the container at deployment time.


testNewAnnotationCannotBeExplicitlyDeclared

@SpecAssertion(section="3.2.5")
public void testNewAnnotationCannotBeExplicitlyDeclared()
No Web Bean defined using annotations or XML may explicitly declare @New as a binding type


testForEachSimpleBeanANewBeanExists

@SpecAssertion(section="3.2.5")
public void testForEachSimpleBeanANewBeanExists()


Copyright © 2008-2009. All Rights Reserved.