Persistence Unit Test Specification
Author: Jan Horvath
Version: 1.0
Last update: 2006/03/09
Introduction:
Comment:
Table of Contents
|
Purpose: Test persistence.xml editor
Setup:
register Glassfish, in library manager create new library named glassfish and add here toplink-essentials.jar and javaee.jar. Create/open EJB module
| # | Test case | Description |
| 1 | Create Persiscence Unit |
- create new Persistence Unit with default name
|
|
| RESULT: | persistence.xml is opened, and created unit has same name as project name |
|
| 2 | Rename Persistence Unit |
- change Persistence Unit name to "name1"
|
|
| RESULT: | switch to XML view and check unit name |
|
| 3 | Create second Persistence Unit |
- in top-right corner of editor click Add button
-
in Create Persistence Unit dialog leave default unit name (should be same as EJB module name) and select Application managed
|
|
| RESULT: | in editor is new persistence unit. |
|
| 4 | Try to create PU with allready used name |
-
click Add button. In create dialog leave default name (should same as EJB module name)
|
|
| RESULT: |
OK button is disabled while unit name is same as already existing one. click Cancel
|
|
| 5 | Remove Persistence unit |
|
|
|
|
|
Purpose: test Persistence Unit in Web Application
Setup: create/open Web Application
| # | Test case | Description |
| 1 | Create Persiscence Unit |
- create new Persistence Unit with default name
|
|
| RESULT: | persistence.xml is opened, and created unit has same name as project name |
|
|
|
Purpose: test Persistence unit in Java Application
Setup: create/open Java Application
| # | Test case | Description |
| 1 | Create Persiscence Unit |
- create new Persistence Unit with default name
|
|
| RESULT: | persistence.xml is opened, and created unit has same name as project name |
|
|
Generated: 2006 03 10 01:08