Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EJB Test Plan/Session Bean Wizard"
(→Prerequisites) |
(→Create Default Session Bean) |
||
Line 12: | Line 12: | ||
# Create a new Session Bean: | # Create a new Session Bean: | ||
#* for Java package enter some String that starts with a number, or has some symbols (except _ ). There should be an error: Invalid Java package name… | #* for Java package enter some String that starts with a number, or has some symbols (except _ ). There should be an error: Invalid Java package name… | ||
− | #* enter "test" for Java package | + | #* enter "test" for Java package. |
− | #* for Class name enter some String that starts with a number, or has some symbols (except _ ). There should be an error: Invalid Java class name. Next and Finish buttons are disabled | + | #* for Class name enter some String that starts with a number, or has some symbols (except _ ). There should be an error: Invalid Java class name. Next and Finish buttons are disabled. |
− | #* enter "TestBean" for Class name | + | #* enter "TestBean" for Class name. |
− | #* State type must be Stateless by default | + | #* State type must be Stateless by default. |
− | #* Check whether only "Create Business Interface > Local" is checked by default and leave it checked | + | #* Check whether only "Create Business Interface > Local" is checked by default and leave it checked. |
#* [[Image:Session_bean_01.png]] | #* [[Image:Session_bean_01.png]] | ||
− | #* go to next page | + | #* go to next page. |
#* Check whether in Business Interfaces section only TestBeanLocal interface is shown. | #* Check whether in Business Interfaces section only TestBeanLocal interface is shown. | ||
#* Leave the Inherited abstract methods and Constructors from superclass checkboxes checked. | #* Leave the Inherited abstract methods and Constructors from superclass checkboxes checked. | ||
− | #* press Finish | + | #* press Finish. |
+ | #Create a new Stateless Session Bean: | ||
+ | #*enter "test" for Java package. | ||
+ | #*enter "TestBean" for Class name. Check that there is an error: The class already exists in the package. | ||
+ | #*enter "TestBean1" for name. | ||
+ | #*Check up Remote interface and uncheck Local interface. | ||
+ | #*Check whether in Business Interfaces section only TestBean1Remote interface is shown. | ||
+ | #*press Finish. | ||
+ | #Create a new Stateless Session Bean : | ||
+ | #*enter "test" for Java package. | ||
+ | #*enter "TestBean1_2" for Class name. | ||
+ | #*Check up both interfaces. | ||
+ | #*Press Next and check whether the names of the both interfaces are shown. | ||
+ | #*[[Image:Session_bean_02.png]] | ||
+ | #*press Finish. | ||
+ | #Check that Session Bean classes and interfaces exist in the project file structure. | ||
+ | #Verify that there is a node for the Deployment Descriptor and nodes for all the Beans under the "Session Beans" node. | ||
+ | #Check that under each node all bean classes and interfaces are listed. | ||
<< add more steps >> | << add more steps >> |
Revision as of 07:01, 3 July 2008
Functional tests for the Session Bean wizard.
Contents
Prerequisites
- Java EE 5 compatible runtime installed: JBoss, Glassfish, etc.
- an EAR 5 project created.
Create Default Session Bean
- Open the Java EE perspective.
- Create One EJB Project 3.0 and add it to the EAR.
- Create a new Session Bean:
- for Java package enter some String that starts with a number, or has some symbols (except _ ). There should be an error: Invalid Java package name…
- enter "test" for Java package.
- for Class name enter some String that starts with a number, or has some symbols (except _ ). There should be an error: Invalid Java class name. Next and Finish buttons are disabled.
- enter "TestBean" for Class name.
- State type must be Stateless by default.
- Check whether only "Create Business Interface > Local" is checked by default and leave it checked.
- go to next page.
- Check whether in Business Interfaces section only TestBeanLocal interface is shown.
- Leave the Inherited abstract methods and Constructors from superclass checkboxes checked.
- press Finish.
- Create a new Stateless Session Bean:
- enter "test" for Java package.
- enter "TestBean" for Class name. Check that there is an error: The class already exists in the package.
- enter "TestBean1" for name.
- Check up Remote interface and uncheck Local interface.
- Check whether in Business Interfaces section only TestBean1Remote interface is shown.
- press Finish.
- Create a new Stateless Session Bean :
- Check that Session Bean classes and interfaces exist in the project file structure.
- Verify that there is a node for the Deployment Descriptor and nodes for all the Beans under the "Session Beans" node.
- Check that under each node all bean classes and interfaces are listed.
<< add more steps >>