cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Persistence Unit Test Specification

Author: Jan Horvath
Version: 1.0
Last update: 2006/03/09
Introduction:
Comment:

Table of Contents

Test suite 1: Persistence Unit in EJB Module

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 caseDescription
1Create Persiscence Unit
  1. create new Persistence Unit with default name
RESULT:persistence.xml is opened, and created unit has same name as project name
2Rename Persistence Unit
  1. change Persistence Unit name to "name1"
RESULT:switch to XML view and check unit name
3Create second Persistence Unit
  1. in top-right corner of editor click Add button
  2. 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.
4Try to create PU with allready used name
  1. 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
5Remove Persistence unit
  1. remove second Unit
RESULT:unit is removed

Test suite 2: Persistence in Web Application

Purpose: test Persistence Unit in Web Application
Setup: create/open Web Application

#Test caseDescription
1Create Persiscence Unit
  1. create new Persistence Unit with default name
RESULT:persistence.xml is opened, and created unit has same name as project name

Test suite 3: Persistence in Java Application

Purpose: test Persistence unit in Java Application
Setup: create/open Java Application

#Test caseDescription
1Create Persiscence Unit
  1. 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
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