cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

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

Test suite 1: Data Sources Test Suite

Purpose:
Setup:

#Test caseDescription
1'New Data Source ...' action accessibility
Setup:The action should be accessible from:
  1. New > Persistence > Entity Classes from Database > Database Tables (Step 2) dialog
  2. New > Persistence > New Persistence Unit > Provider and Database (Step 2) dialog
RESULT: Both dialogs contain Data Source combobox with New Data Source ... item.
2Create Data Source
  1. invoke New > Persistence > Persistence Unit > Data Source: > New Data Source ...
  2. 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.
3Deploy Data Source
  1. write test servlet and use the data source there
  2. deploy project and run the servlet
RESULT: Project and data source are correctly deployed on target server and servlet is up and running.
4Retrieve Data Sources from server
  1. expand New > Persistence > Persistence Unit > Data Source: combobox
  2. 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
Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems