Data Sources Management Test Specification
Author: Martin Schovanek
Version: 1.1
Last update: 2006/03/21
Introduction:
Comment:
Features covered by this spec are described in Persistence UI spec (main part).
Table of Contents
|
Purpose:
Setup:
| # | Test case | Description |
| 1 | 'New Data Source ...' action accessibility |
| Setup:The action should be accessible from: |
-
New > Persistence > Entity Classes from Database > Database Tables (Step 2) dialog
-
New > Persistence > New Persistence Unit > Provider and Database (Step 2) dialog
|
|
| RESULT: |
Both dialogs contain Data Source combobox with New Data Source ... item.
|
|
| 2 | Create Data Source |
-
invoke
New > Persistence > Persistence Unit > Data Source: > New Data Source ...
-
enter
JNDI Name and Database Connection and finish the dialog
|
|
| RESULT: |
Data Source declaration and resource reference appear in server specific data source descriptor and server specific deployment descriptor.
|
|
| 3 | Deploy Data Source |
- write test servlet and use the data source there
- deploy project and run the servlet
|
|
| RESULT: |
Project and data source are correctly deployed on target server and servlet is up and running.
|
|
| 4 | Retrieve Data Sources from server |
- expand
New > Persistence > Persistence Unit > Data Source: combobox
- attempt to create new data source with existing JNDI name
|
|
| RESULT: |
The combobox contains all data sources deployed on the server or stored in the project. Attempt to create new data source with existing JNDI name is rejected.
|
|
|
Generated: 2006 03 21 08:55