STS 74 JavaEE

(Difference between revisions)
(Created page with '==Java EE Sanity Test Specification for NetBeans 7.4== '''Author:''' [mailto:stepan.zebra@oracle.com Štěpán Žebra]<br /> '''Version:''' 1.0<br /> '''Last update:''' 17.7.2013…')
Line 7: Line 7:
__TOC__
__TOC__
 +
 +
====Test suite: Create Java EE 7 Application====
 +
Purpose: Create web applications with web services.<br />
 +
Setup: Install GlassFish server version 4.0 and register it in '''Tools | Servers''' in the IDE.<br />
 +
 +
# {{testcase|Create Web Service project}}
 +
:{|
 +
|- align="center"
 +
! Ant Project
 +
! Maven Project
 +
|- valign="top"
 +
|
 +
# Create a new "Java Web / Web Application" project,
 +
#* "Project Name": <code>dukes-age</code>,
 +
#* "Server": <code>GlassFish 4</code>,
 +
#* "Java EE Version": <code>Java EE 7 Web</code>.
 +
# Delete <code>index.html</code> file.
 +
|
 +
# Create a new "Maven / Web Application" project,
 +
#* "Project Name": <code>dukes-age</code>,
 +
#* "Server": <code>GlassFish 4</code>,
 +
#* "Java EE Version": <code>Java EE 7 Web</code>.
 +
# Delete <code>index.html</code> file.
 +
|}
 +
:* {{result|EXPECTED RESULT: Newly created project is visible in the "Projects" view.}}
 +
# {{testcase|Create Web Service class}}
 +
## Select the project root node in "Projects" view and push '''New File...''' toolbar button.
 +
## Select "Web Services / RESTful Web Services from Patterns" and push '''Next >'''.
 +
## Choose "Simple Root Resource" design pattern and push '''Next >'''.
 +
## Set
 +
##* "Resource Package": <code>firstcup.webservice</code>,
 +
##* "Path": <code>dukesAge</code>,
 +
##* "Class Name": <code>DukesAgeResource</code>,
 +
##* "MIME Type": <code>text/plain</code>.
 +
## Push the '''Finish''' button.
 +
#* {{result|EXPECTED RESULT: <code>DukesAgeResource.java</code> and <code>ApplicationConfig.java</code> classes are created and opened in the editor.}}

Revision as of 13:14, 17 July 2013

Java EE Sanity Test Specification for NetBeans 7.4

Author: Štěpán Žebra
Version: 1.0
Last update: 17.7.2013
Introduction: Purpose of this test specification is to try various technologies and go through the whole development cycle. It can be used for Ant based and Maven projects. If there are differences the test case is divided into two tracks.
Comments: This document is heavily based on TS_72_JavaEE_Sanity which is now obsolete. Test scenarios are based on http://docs.oracle.com/javaee/7/firstcup/doc/home.htm.

Contents


Test suite: Create Java EE 7 Application

Purpose: Create web applications with web services.
Setup: Install GlassFish server version 4.0 and register it in Tools | Servers in the IDE.

  1. Create Web Service project
Ant Project Maven Project
  1. Create a new "Java Web / Web Application" project,
    • "Project Name": dukes-age,
    • "Server": GlassFish 4,
    • "Java EE Version": Java EE 7 Web.
  2. Delete index.html file.
  1. Create a new "Maven / Web Application" project,
    • "Project Name": dukes-age,
    • "Server": GlassFish 4,
    • "Java EE Version": Java EE 7 Web.
  2. Delete index.html file.
  • EXPECTED RESULT: Newly created project is visible in the "Projects" view.
  1. Create Web Service class
    1. Select the project root node in "Projects" view and push New File... toolbar button.
    2. Select "Web Services / RESTful Web Services from Patterns" and push Next >.
    3. Choose "Simple Root Resource" design pattern and push Next >.
    4. Set
      • "Resource Package": firstcup.webservice,
      • "Path": dukesAge,
      • "Class Name": DukesAgeResource,
      • "MIME Type": text/plain.
    5. Push the Finish button.
    • EXPECTED RESULT: DukesAgeResource.java and ApplicationConfig.java classes are created and opened in the editor.
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