|
||||||||||
| 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.implementation.simple.NewSimpleBeanTest
public class NewSimpleBeanTest
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 |
void |
testNewAnnotationMayBeAppliedToField()
The @New annotation or |
void |
testNewAnnotationMayBeAppliedToInitializerMethodParameter()
The @New annotation or |
void |
testNewAnnotationMayBeAppliedToProducerMethodParameter()
The @New annotation or |
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 |
|---|
public NewSimpleBeanTest()
| Method Detail |
|---|
public void initNewBean()
@SpecAssertion(section="3.2.5") public void testNewBeanIsDependentScoped()
@SpecAssertion(section="3.2.5") public void testNewBeanIsOfStandardDeploymentType()
@SpecAssertion(section="3.2.5") public void testNewBeanIsHasOnlyNewBinding()
@SpecAssertion(section="3.2.5") public void testNewBeanHasNoWebBeanName()
@SpecAssertion(section="3.2.5") public void testNewBeanHasNoStereotypes()
@SpecAssertion(section="3.2.5") public void testNewBeanHasNoObservers()
@SpecAssertion(section="3.2.5") public void testNewBeanHasNoProducerFields()
@SpecAssertion(section="3.2.5") public void testNewBeanHasNoProducerMethods()
@SpecAssertion(section="3.2.5") public void testNewBeanHasNoDisposalMethods()
@SpecAssertion(section="3.2.5") public void testNewBeanHasSameInterceptorMethodsAsWrappedBean()
@SpecAssertion(section="3.2.5") public void testNewBeanHasNoDecorators()
@SpecAssertion(section="3.2.5") public void testNewAnnotationMayBeAppliedToField()
@SpecAssertion(section="3.2.5") public void testNewAnnotationMayBeAppliedToProducerMethodParameter()
@SpecAssertion(section="3.2.5") public void testNewAnnotationMayBeAppliedToInitializerMethodParameter()
@SpecAssertion(section="3.2.5") public void testNewAnnotationMayBeAppliedToConstructorMethodParameter()
@SpecAssertion(section="3.2.5") public void testNewAnnotationCannotAppearInConjunctionWithOtherBindingType()
@SpecAssertion(section="3.2.5") public void testNewAnnotationCannotBeAppliedToNonWebBeanImplementationClass()
@SpecAssertion(section="3.2.5") public void testNewAnnotationCannotBeExplicitlyDeclared()
@SpecAssertion(section="3.2.5") public void testForEachSimpleBeanANewBeanExists()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||