|
||||||||||
| 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.producer.field.ProducerFieldDefinitionTest
public class ProducerFieldDefinitionTest
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 | |
|---|---|
ProducerFieldDefinitionTest()
|
|
| Method Summary | |
|---|---|
protected java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getEnabledDeploymentTypes()
This method should be overridden by test classes which need to enable additional deployment types beyond the normal ones. |
void |
testApiTypeForArrayTypeReturn()
If a field type is primitive or is a Java array type, the set of bean types contains exactly two types: the field type and java.lang.Object. |
void |
testApiTypeForClassReturn()
If the field type is a class, the set of bean types contains the field type, every superclass and all interfaces it implements directly or indirectly. |
void |
testApiTypeForInterfaceReturn()
If the field type is an interface, the set of bean types contains the field type, all interfaces it extends directly or indir- ectly and java.lang.Object. |
void |
testApiTypeForPrimitiveReturn()
If a field type is primitive or is a Java array type, the set of bean types contains exactly two types: the field type and java.lang.Object. |
void |
testBeanDeclaresMultipleProducerFields()
A bean may declare multiple producer fields. |
void |
testBindingType()
A producer field may also specify scope, name, deployment type, stereotypes and/or bindings. |
void |
testDefaultBindingType()
|
void |
testDefaultNamedField()
The default name for a producer field is the field name. |
void |
testDeploymentType()
A producer field may also specify scope, name, deployment type, stereotypes and/or bindings. |
void |
testNamedField()
A producer field may also specify scope, name, deployment type, stereotypes and/or bindings. |
void |
testNonStaticProducerFieldNotInherited()
|
void |
testParameterizedReturnType()
If the producer field return type is a parameterized type, it must specify actual type parameters for each type parameter. |
void |
testParameterizedReturnTypeWithWildcard()
If the producer field return type is a parameterized type, it must specify actual type parameters for each type parameter. |
void |
testProducerFieldInheritsDeploymentTypeOfDeclaringWebBean()
By default, if no deployment type annotation is explicitly specified, a producer method or field inherits the deployment type of the bean in which it is defined. |
void |
testProducerFieldIsNotBusinessField()
|
void |
testScopeType()
A producer field may also specify scope, name, deployment type, stereotypes and/or bindings. |
void |
testStereotype()
A producer field may also specify scope, name, deployment type, stereotypes and/or bindings. |
| Methods inherited from class org.jboss.webbeans.tck.AbstractTest |
|---|
activateDependentContext, after, before, createEnterpriseBean, createProducerFieldBean, createProducerMethodBean, createSimpleBean, deactivateDependentContext, deployBeans, deserialize, getStandardDeploymentTypes, mockCreationalContext, serialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProducerFieldDefinitionTest()
| Method Detail |
|---|
protected java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> getEnabledDeploymentTypes()
AbstractTest
getEnabledDeploymentTypes in class AbstractTest
@SpecAssertion(section="2.5.3")
public void testProducerFieldInheritsDeploymentTypeOfDeclaringWebBean()
throws java.lang.Exception
java.lang.Exception
@SpecAssertion(section="3.5")
public void testProducerFieldIsNotBusinessField()
throws java.lang.Exception
java.lang.Exception
@SpecAssertion(section="3.5")
public void testParameterizedReturnType()
throws java.lang.Exception
java.lang.Exception@SpecAssertion(section="3.5") public void testParameterizedReturnTypeWithWildcard()
java.lang.Exception@SpecAssertion(section="3.5") public void testBeanDeclaresMultipleProducerFields()
@SpecAssertion(section={"3.5","2.3.1"})
public void testDefaultBindingType()
@SpecAssertion(section="3.5.1") public void testApiTypeForClassReturn()
java.lang.Exception@SpecAssertion(section="3.5.1") public void testApiTypeForInterfaceReturn()
java.lang.Exception@SpecAssertion(section="3.5.1") public void testApiTypeForPrimitiveReturn()
java.lang.Exception
@SpecAssertion(section={"3.5.1","2.2"})
public void testApiTypeForArrayTypeReturn()
java.lang.Exception@SpecAssertion(section="3.5.2") public void testBindingType()
java.lang.Exception@SpecAssertion(section="3.5.2") public void testScopeType()
java.lang.Exception@SpecAssertion(section="3.5.2") public void testDeploymentType()
java.lang.Exception@SpecAssertion(section="3.5.2") public void testNamedField()
java.lang.Exception
@SpecAssertion(section={"2.6.3","3.5.4"})
public void testDefaultNamedField()
java.lang.Exception
@SpecAssertion(section={"2.7.2","3.5.2","2.2"})
public void testStereotype()
java.lang.Exception@SpecAssertion(section="4.2") public void testNonStaticProducerFieldNotInherited()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||