|
||||||||||
| 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.enterprise.EnterpriseBeanDeclarationTest
public class EnterpriseBeanDeclarationTest
Sections 3.3. Enterprise Web Beans 3.3.1. Which EJBs are enterprise Web Beans? 3.3.2. API types of an enterprise Web Bean 3.3.3. Declaring an enterprise Web Bean using annotations 3.3.4. Declaring an enterprise Web Bean using XML
| 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 | |
|---|---|
EnterpriseBeanDeclarationTest()
|
|
| Method Summary | |
|---|---|
void |
testAnnotatedEnterpriseBean()
All session beans exposing an EJB 3.x client view and declared via an EJB component defining annotation on the EJB bean class are Web Beans, and thus no special declaration is required. |
void |
testAnnotatedEnterpriseBeanComplementedWithXML()
Additional enterprise Web Beans for these EJBs may be defined using XML, by specifying the bean class in web-beans.xml. |
void |
testAPITypesAreLocalInterfacesWithoutWildcardTypesOrTypeVariablesWithSuperInterfaces()
The set of API types for an enterprise Web Bean contains all local interfaces of the bean that do not have wildcard type parameters or type variables and their superinterfaces |
void |
testDefaultName()
The default name for an enterprise Web Bean is the unqualified class name of the Web Bean implementation class, after converting the first character to lower case. |
void |
testEJBJARDefinedEnterpriseBean()
All session beans exposing an EJB 3.x client view and declared in ejb-jar.xml are also Web Beans. |
void |
testEJBJARDefinedEnterpriseBeanComplementedWithXML()
Additional enterprise Web Beans for these EJBs may be defined using XML, by specifying the bean class and EJB name in web-beans.xml |
void |
testEnterpriseBeanDecoratorFails()
If the implementation class of an enterprise Web Bean is annotated @Interceptor or @Decorator, a DefinitionException is thrown by the Web Bean manager at initialization time. |
void |
testEnterpriseBeanInterceptorFails()
If the implementation class of an enterprise Web Bean is annotated @Interceptor or @Decorator, a DefinitionException is thrown by the Web Bean manager at initialization time. |
void |
testEnterpriseBeanWithLocalViewAndParameterizedTypeIncludesBeanClassAndSuperclassesInAPITypes()
If the EJB bean has a bean class local view and the bean class is not a parameterized type, the set of API types contains the bean class and all superclasses |
void |
testMessageDrivenBeansNotOK()
Enterprise Web Beans may not be message-driven beans. |
void |
testMultipleAnnotationDefinedEnterpriseBeansWithSameImplementationClassFails()
Only one Web Bean per implementation class may be defined using annotations. |
void |
testMultipleXMLDefinedEnterpriseBeansWithSameImplementationClassOK()
Note that multiple enterprise Web Beans may share the same implementation class. |
void |
testObjectIsInAPITypes()
In addition, java.lang.Object is an API type of every enterprise Web Bean. |
void |
testRemoteInterfacesAreNotInAPITypes()
Remote interfaces are not included in the set of API types. |
void |
testSingletonWithApplicationScopeOK()
An EJB singleton bean must belong to either the @ApplicationScoped scope or to the @Dependent pseudo-scope. |
void |
testSingletonWithConversationScopeFails()
An EJB singleton bean must belong to either the @ApplicationScoped scope or to the @Dependent pseudo-scope. |
void |
testSingletonWithDependentScopeOK()
An EJB singleton bean must belong to either the @ApplicationScoped scope or to the @Dependent pseudo-scope. |
void |
testSingletonWithRequestScopeFails()
An EJB singleton bean must belong to either the @ApplicationScoped scope or to the @Dependent pseudo-scope. |
void |
testSingletonWithSessionScopeFails()
An EJB singleton bean must belong to either the @ApplicationScoped scope or to the @Dependent pseudo-scope. |
void |
testStatelessWithApplicationScopeFails()
An EJB stateless session bean must belong to the @Dependent pseudo-scope. |
void |
testStatelessWithConversationScopeFails()
An EJB stateless session bean must belong to the @Dependent pseudo-scope. |
void |
testStatelessWithDependentScopeOK()
An EJB stateless session bean must belong to the @Dependent pseudo-scope. |
void |
testStatelessWithRequestScopeFails()
An EJB stateless session bean must belong to the @Dependent pseudo-scope. |
void |
testStatelessWithSessionScopeFails()
An EJB stateless session bean must belong to the @Dependent pseudo-scope. |
void |
testXMLFilesEJBNameUsage()
Enterprise Web Beans may be declared in web-beans.xml using the bean class name (for EJBs defined using a component- defining annotation) or bean class and EJB name (for EJBs defined in ejb-jar.xml). |
| 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 EnterpriseBeanDeclarationTest()
| Method Detail |
|---|
@SpecAssertion(section="3.3") public void testStatelessWithDependentScopeOK()
@SpecAssertion(section="3.3") public void testStatelessWithRequestScopeFails()
@SpecAssertion(section="3.3") public void testStatelessWithConversationScopeFails()
@SpecAssertion(section="3.3") public void testStatelessWithSessionScopeFails()
@SpecAssertion(section="3.3") public void testStatelessWithApplicationScopeFails()
@SpecAssertion(section="3.3") public void testSingletonWithDependentScopeOK()
@SpecAssertion(section="3.3") public void testSingletonWithRequestScopeFails()
@SpecAssertion(section="3.3") public void testSingletonWithConversationScopeFails()
@SpecAssertion(section="3.3") public void testSingletonWithSessionScopeFails()
@SpecAssertion(section="3.3") public void testSingletonWithApplicationScopeOK()
@SpecAssertion(section="3.3") public void testEnterpriseBeanInterceptorFails()
@SpecAssertion(section="3.3") public void testEnterpriseBeanDecoratorFails()
@SpecAssertion(section="3.3") public void testMultipleAnnotationDefinedEnterpriseBeansWithSameImplementationClassFails()
@SpecAssertion(section="3.3") public void testMultipleXMLDefinedEnterpriseBeansWithSameImplementationClassOK()
@SpecAssertion(section="3.3.2") public void testAnnotatedEnterpriseBean()
@SpecAssertion(section="3.3.2") public void testAnnotatedEnterpriseBeanComplementedWithXML()
@SpecAssertion(section="3.3.2") public void testEJBJARDefinedEnterpriseBean()
@SpecAssertion(section="3.3.2") public void testEJBJARDefinedEnterpriseBeanComplementedWithXML()
@SpecAssertion(section="3.3.3") public void testAPITypesAreLocalInterfacesWithoutWildcardTypesOrTypeVariablesWithSuperInterfaces()
@SpecAssertion(section="3.3.3") public void testEnterpriseBeanWithLocalViewAndParameterizedTypeIncludesBeanClassAndSuperclassesInAPITypes()
@SpecAssertion(section="3.3.3") public void testObjectIsInAPITypes()
@SpecAssertion(section="3.3.3") public void testRemoteInterfacesAreNotInAPITypes()
@SpecAssertion(section="3.3") public void testXMLFilesEJBNameUsage()
@SpecAssertion(section="3.3") public void testMessageDrivenBeansNotOK()
@SpecAssertion(section="3.3.8") public void testDefaultName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||