EJB 3.0 Test Specification
Author: Jan Horvath
Version: 1.1
Last update: 2006/03/13
Introduction:
Comment:
Table of Contents
|
Purpose: test creating of session beans
Setup: create/open EJB module
| # | Test case | Description |
| 1 | Create Stateless Session Bean |
- create new session bean named Session1, session type Stateless, interface Local
|
|
| RESULT: |
Session1 bean have @Stateless() annotation above class declaration. Interface Session1Local is created.
|
|
| 2 | Create Stateful Session Bean |
-
create new session bean named Session2, session type Stateful, interface Locan and Remote
|
|
| RESULT: |
Session2 bean have @Stateful() annotation above class declaration. Interfaces Session2Local and Session2Remote are created.
|
|
|
|
Purpose: test creating Entity Classes and Entity CLasses from Database
Setup:
open/create Java Application, Web Application and EJB module and repeat steps for all this projects
| # | Test case | Description |
| 1 | Entity Class |
- Create new Entity class named NewEntity.
|
|
| RESULT: | new Entity class is created. @Entity annotation is above class declaration |
|
| 2 | Entity Classes from DB |
- Invoke Entity Classes from Database wizard
- select JDBC Connection: jdbc:derby://localhost:1527/sample
- in next wizard screen add CUSTOMER table and click Finish.
|
|
| RESULT: | Customer and DiscountCode classes are created |
|
|
|
Purpose:
Setup: test creating of Message-Driven Beans
| # | Test case | Description |
| 1 | Create MDB |
- Create new MessageDriven Bean
- use Mapped name "name1"
|
|
| RESULT: |
In generated MDB class above class declaration is this annotation: @MessageDriven(mappedName = "name1")
|
|
|
Generated: 2006 03 17 01:18