TS 68 JavaEE6Persistence Validation

"Java EE6 Persistance Validation" Test Specification for "NetBeans 6.8"

Author: "Martin Schovanek"
Version: "1.0"
Last update: "09/10/2009 - WORKING DRAFT"
Introduction: "Intro here"
Comments: "http://blogs.sun.com/carolmcdonald/entry/java_ee_6_pet_catalog, http://java.sun.com/developer/technicalArticles/glassfish/GFandMySQL_Part2.html"

Contents


Test suite: "Setup the environment"

Purpose: "purpose description"
Setup: ""

  1. "Create the Pet Catalog database"
    1. "Start NetBeans IDE"
    2. "Ensure thet GlassFish v3 is registered in the NetBeasn IDE"
    3. "Click the Services tab and expand the databases node."
    4. "Right click the Java DB database node and choose Create Database..."
    5. "Enter {New Database Name: petcatalog, Grant Full Access To: root@...}"
    6. "Open catalog.sql and choose jdbc:mysql://.../petcatalog connection from Connection: combo-box"
    7. "Right click the Editor pane and choose Run File"
    8. "Underneath Databases you should see a database connection for the petcatalog"
    9. "Expand the Tables node below the petcatalog database in the Services window. You should see the item table under the Tables node. You can expand the item table node."
    10. "Right-click the item table node and select View Data."
    • EXPECTED RESULT: "The petcatalog database have bean created and populated with sample catalog data."
  2. "Create the catalog Web Project"
    1. "Choose 'File > New Project > Java Web > Web Application' and click Next"
    2. "Enter {Prpoject Name: catalog} and click Next"
    3. "Enter {Server: GlassFish v3, Java EE Version: Java EE 6 Web} and click Next"
    4. "Choose JavaServer Faces framework and click Finish"
    5. "Add the pet images to the project. Copy the images folder from the web directory in the completed petcatalog application to the web directory in the web application that you are building."
    • EXPECTED RESULT: "The new catalog project have been created."
  3. "Generate entity classes from the database."
    1. "Invoke File > New File > Persistance > Entity Classes from Database and click Next."
    2. "Select the jdbc/petcatalog Data Source, click 'Add All >>' and then 'Next'."
    3. "Enter: model in the Package field."
    4. "Click the Create Persistence Unit button. This opens the Create Persistence Unit dialog box. Leave the entries as is and click the Create button in the dialog box to create the persistence unit and return to the Database Tables page of the wizard."
    5. "Click the Next button to open the Mapping Options page of the wizard."
    6. "Leave the default values in the Mapping Options page as is and click the Finish button."
    • EXPECTED RESULT: "The IDE generates an entity class for each table in the petcatalog database."


Test suite: "test suite 2 title"

Purpose: "purpose description"
Setup: "setup description"

  1. "Test case 1 name"
    1. "action 1 description"
    2. "action 2 description"
    3. "action n description"
    • EXPECTED RESULT: "result description"
  2. "Test case 2 name"
    1. "action 1 description"
    2. "action 2 description"
    3. "action n description"
    • EXPECTED RESULT: "result description"
  3. "Test case n name"
    1. "action 1 description"
    2. "action 2 description"
    3. "action n description"
    • EXPECTED RESULT: "result description"


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo