Introduction

Previous Next Contents

1 Introduction

This document provides instructions for installing, configuring, and running the Jakarta Platform, Enterprise Edition 8 Compatibility Test Suite (Jakarta EE 8 CTS).

This chapter includes the following topics:

1.1 Compatibility Testing

Compatibility testing differs from traditional product testing in a number of ways. The focus of compatibility testing is to test those features and areas of an implementation that are likely to differ across other implementations, such as those features that:

  • Rely on hardware or operating system-specific behavior

  • Are difficult to port

  • Mask or abstract hardware or operating system behavior

Compatibility test development for a given feature relies on a complete specification and compabitle implementation for that feature. Compatibility testing is not primarily concerned with robustness, performance, or ease of use.

1.1.1 Why Compatibility Testing is Important

Jakarta Platform compatibility is important to different groups involved with Jakarta technologies for different reasons:

  • Compatibility testing ensures that the Jakarta Platform does not become fragmented as it is ported to different operating systems and hardware environments.

  • Compatibility testing benefits developers working in the Java programming language, allowing them to write applications once and then to deploy them across heterogeneous computing environments without porting.

  • Compatibility testing allows application users to obtain applications from disparate sources and deploy them with confidence.

  • Conformance testing benefits Jakarta Platform implementors by ensuring a level playing field for all Jakarta Platform ports.

1.1.2 Compatibility Rules

Compatibility criteria for all technology implementations are embodied in the Compatibility Rules that apply to a specified technology. The Jakarta EE 8 CTS tests for adherence to these Rules as described in Chapter 2, "Procedure for Jakarta Platform, Enterprise Edition 8 Certification," for Jakarta EE 8 and Chapter 3, "Procedure for Jakarta Platform, Enterprise Edition 8 Web Profile Certification," for Jakarta EE 8 Web Profile.

1.1.3 CTS Overview

A Jakarta EE 8 CTS is a set of tools and tests used to verify that a Implementer’s implementation of Jakarta EE 8 technology conforms to the applicable specification. All tests in the CTS are based on the written specifications for the Jakarta Platform. The CTS tests compatibility of a Implementer’s implementation of a technology to the applicable specification of the technology. Compatibility testing is a means of ensuring correctness, completeness, and consistency across all implementations developed by technology Implementers.

The set of tests included with the Jakarta EE 8 CTS is called the test suite. All tests in the CTS test suite are self-checking, but some tests may require tester interaction. Most tests return either a Pass or Fail status. For a given platform to be certified, all of the required tests must pass. The definition of required tests may change from platform to platform.

The definition of required tests will change over time. Before your final certification test pass, be sure to download the latest Exclude List for the Jakarta EE 8 CTS. The definition of required tests will change over time. See Section 1.2.5, "Exclude Lists," for more information.

1.1.4 Jakarta Specification Community Process Program and Compatibility Testing

The Jakarta EE Specification Process (JESP) program is the formalization of the open process that has been used since 2019 to develop and revise Jakarta EE technology specifications in cooperation with the international Jakarta EE community. The JESP program specifies that the following three major components must be included as deliverables in a final Jakarta EE technology release under the direction of the responsible specification project committer group:

  • Technology Specification

  • A Compatible Implementation

  • Technology Compatibility Kit (TCK)

For further information about the JESP program, go to Jakarta EE Specification Process community page (https://jakarta.ee/specifications).

1.2 About Jakarta EE 8 CTS

Jakarta EE 8 CTS is a portable, configurable, automated test suite for verifying the compliance of a Implementer’s implementation of the Jakarta EE 8 technologies. Jakarta EE 8 CTS includes version 5.0 of the JavaTest harness.

For documentation on the test harness used for running the Jakarta EE 8 CTS test suite, see https://wiki.openjdk.java.net/display/CodeTools/Documentation.

1.2.1 Jakarta EE 8 Technologies Tested with Jakarta EE 8 CTS

The Jakarta EE 8 CTS test suite includes compatibility tests for the following required and optional Jakarta EE 8 technologies:

  • Jakarta Enterprise Beans 3.2

  • Jakarta Servlet 4.0

  • Jakarta Server Pages 2.3

  • Jakarta Expression Language 3.0

  • Jakarta Messaging 2.0

  • Jakarta Transactions 1.2

  • Jakarta Mail 1.6

  • Jakarta Connectors 1.7

  • Jakarta Enterprise Web Services 1.4

  • Jakarta XML RPC 1.1 (optional)

  • Jakarta RESTful Web Services 2.1

  • Jakarta WebSocket 1.1

  • Jakarta JSON Processing 1.1

  • Jakarta JSON Binding 1.0

  • Jakarta Concurrency 1.0

  • Jakarta Batch 1.0

  • Jakarta XML Registries 1.0 (optional)

  • Jakarta Management 1.1

  • Jakarta Deployment 1.2 (optional)

  • Jakarta Authorization 1.5

  • Jakarta Authentication 1.1

  • Jakarta Standard Tag Library 1.2

  • Jakarta Faces 2.3

  • Jakarta Security 1.0

  • Jakarta Annotations 1.3

  • Jakarta Persistence 2.2

  • Jakarta Bean Validation 2.0

  • Jakarta Managed Beans 1.0

  • Jakarta Interceptors 1.2

  • Jakarta Contexts and Dependency Injection 2.0

  • Jakarta Dependency Injection 1.0

  • Jakarta Debugging Support for Other Languages 1.0

Note

Support for the following Legacy Java EE features has been made optional in the Jakarta EE 8 release:

  • EJB 2.1 and earlier Entity Bean Component Contract for Container-Managed Persistence and Bean-Managed Persistence

  • Client View of an EJB 2.1 and earlier Entity Bean

  • EJB QL: Query Language for Container-Managed Persistence Query Methods

  • JAX-RPC Based Web Service Endpoints

  • JAX-RPC Web Service Client View

1.2.2 Jakarta EE 8 Web Profile Technologies Tested With Jakarta EE 8 CTS

The Jakarta EE 8 CTS test suite can also be used to test compatibility for the following required Jakarta EE 8 Web Profile technologies:

  • Jakarta Servlet 4.0

  • Jakarta Server Pages 2.3

  • Jakarta Expression Language 3.0

  • Jakarta Standard Tag Library 1.2

  • Jakarta Faces 2.3

  • Jakarta RESTful Web Services 2.1

  • Jakarta WebSocket 1.1

  • Jakarta JSON Processing 1.1

  • Jakarta JSON Binding 1.0

  • Jakarta Common Annotations 1.3

  • Jakarta Enterprise Beans 3.2, Lite

  • Jakarta Transactions 1.2

  • Jakarta Persistence 2.2

  • Jakarta Bean Validation 2.0

  • Jakarta Managed Beans 1.0

  • Jakarta Interceptors 1.2

  • Jakarta Contexts and Dependency Injection 2.0

  • Jakarta Dependency Injection 1.0

  • Jakarta Security 1.0

  • Jakarta Authentication 1.1, Servlet Container Profile

  • Jakarta Debugging Support for Other Languages 1.0

1.2.3 CTS Tests

The Jakarta EE 8 CTS contains API tests and enterprise edition tests, which are tests that start in the Jakarta EE 8 platform and use the underlying enterprise service or services as specified. For example, a JDBC enterprise edition test connects to a database, uses SQL commands and the JDBC 4.2 API to populate the database tables with data, queries the database, and compares the returned results against the expected results.

Figure 1-1 Typical Jakarta Platform, Enterprise Edition Workflow

Typical Jakarta Platform, Enterprise Edition Workflow

Note: References in diagram to Java EE refer to Jakarta EE.

Figure 1-1 shows how most Implementers will use the test suite. They will set up and run the test suite with the Jakarta Platform, Enterprise Edition 8 Compatible Implementation (Jakarta EE 8 CI) first to become familiar with the testing process. Then they will set up and run the test suite with their own Jakarta EE 8 implementation. This is called the Vendor Implementation, or VI in this document. When they pass all of the tests, they will apply for and be granted certification.

  • Before you do anything with the test suite, read the rules in Chapter 2, "Procedure for Jakarta Platform, Enterprise Edition 8 Certification," or Chapter 3, "Procedure for Jakarta Platform, Enterprise Edition 8 Web Profile Certification." These chapters explain the certification process and provides a definitive list of certification rules for Jakarta EE 8 and Jakarta EE 8 Web Profile implementations.

  • Next, take a look at the test assertions in the Assertion List, which you can find in the Jakarta EE 8 CTS documentation bundle. The assertions explain what each test is testing. When you run the tests with the JavaTest GUI, the assertion being tested as part of the test description of the currently selected test is displayed.

  • Third, install and configure the Jakarta EE 8 CTS software and the Jakarta EE 8 CI or Jakarta EE 8 Web Profile CI and run the tests as described in this guide. This will familiarize you with the testing process.

  • Finally, set up and run the test suite with your own Jakarta EE 8 or Jakarta EE 8 Web Profile implementation.

Note

In the instructions in this document, variables in angle brackets need to be expanded for each platform. For example, <TS_HOME> becomes $TS_HOME on Solaris/Linux and %TS_HOME% on Windows. In addition, the forward slashes (/) used in all of the examples need to be replaced with backslashes (\) for Windows.

1.2.4 JavaTest Harness

The JavaTest harness version 4.4.1 is a set of tools designed to run and manage test suites on different Java platforms. The JavaTest harness can be described as both a Java application and a set of compatibility testing tools. It can run tests on different kinds of Java platforms and it allows the results to be browsed online within the JavaTest GUI, or offline in the HTML reports that the JavaTest harness generates.

The JavaTest harness includes the applications and tools that are used for test execution and test suite management. It supports the following features:

  • Sequencing of tests, allowing them to be loaded and executed automatically

  • Graphic user interface (GUI) for ease of use

  • Automated reporting capability to minimize manual errors

  • Failure analysis

  • Test result auditing and auditable test specification framework

  • Distributed testing environment support

To run tests using the JavaTest harness, you specify which tests in the test suite to run, how to run them, and where to put the results as described in Chapter 7, "Executing Tests."

The tests that make up the CTS are precompiled and indexed within the CTS test directory structure. When a test run is started, the JavaTest harness scans through the set of tests that are located under the directories that have been selected. While scanning, the JavaTest harness selects the appropriate tests according to any matches with the filters you are using and queues them up for execution.

1.2.5 Exclude Lists

The Jakarta EE 8 CTS includes an Exclude List contained in a .jtx file. This is a list of test file URLs that identify tests which do not have to be run for the specific version of the CTS being used. Whenever tests are run, the JavaTest harness automatically excludes any test on the Exclude List from being executed.

A implementor is not required to pass or run any test on the Exclude List. The Exclude List file, <TS_HOME>/bin/ts.jtx, is included in the Jakarta EE 8 CTS.

Note

Always make sure you are using an up-to-date copy of the Exclude List before running the Jakarta EE 8 CTS test suite to verify your implementation.

A test might be in the Exclude List for reasons such as:

  • An error in an underlying implementation API has been discovered which does not allow the test to execute properly.

  • An error in the specification that was used as the basis of the test has been discovered.

  • An error in the test itself has been discovered.

  • The test fails due to a bug in the tools (such as the JavaTest harness, for example).

In addition, all tests are run against the compatible implementations. Any tests that cannot be run on a compatible Jakarta Platform may be put on the Exclude List if the Specification project team agrees the test is invalid. Any test that is not specification-based, or for which the specification is vague, may be excluded. Any test that is found to be implementation dependent (based on a particular thread scheduling model, based on a particular file system behavior, and so on) may be excluded.

Note

Implementers are not permitted to alter or modify Exclude Lists. Changes to an Exclude List can only be made by using the procedure described in Section 2.3.1, "Jakarta Platform, Enterprise Edition Version 8 TCK Test Appeals Steps," and Section 3.3.1, "Jakarta Platform, Enterprise Edition Version 8 TCK Test Appeals Steps."

1.2.6 Apache Ant

The Jakarta EE 8 CI, Jakarta EE 8 Web Profile CI, and Jakarta EE 8 CTS require implementations of Apache Ant 1.9.7 from the Apache Ant Project (http://ant.apache.org/). Apache Ant is a free, open-source, Java-based build tool, similar in some ways to the make tool, but more flexible, cross-platform compatible, and centered around XML-based configuration files.

Ant is invoked in the Jakarta EE 8 CI, Jakarta EE 8 Web Profile CI, and Jakarta EE 8 CTS in conjunction with various XML files containing Ant targets. These Ant targets provide a convenient way to automate various configuration tasks for Jakarta EE 8 CTS. For example, the initial configuration of the Jakarta EE 8 CI or Jakarta EE 8 Web Profile CI for CTS is done by means of the config.vi Ant target.

The Ant configuration targets are there for your convenience. When configuring your Jakarta EE 8 or Jakarta EE 8 Web Profile implementation for the Jakarta EE 8 CTS, you can either set up your environment to use the Ant tools, or you can perform some or all of your configuration procedures manually. Jakarta EE 8 CTS includes the Ant Contrib package, and the tasks included with Ant Contrib are used within the CTS build files. See http://ant-contrib.sourceforge.net/ for more information about Ant Contrib.

This User’s Guide does not provide in-depth instruction on Ant internals or how to configure Ant targets for your particular Jakarta EE 8 or Jakarta EE 8 Web Profile implementation. For complete information about Ant, refer to the extensive documentation on the Apache Ant Project site. The Apache Ant Manual is available at http://ant.apache.org/manual/index.html.

Apache Ant is protected under the Apache Software, License 2.0, which is is available on the Apache Ant Project license page at http://ant.apache.org/license.html.

Installing Apache Ant
  • Download the Apache Ant 1.9.7 binary bundle from the Apache Ant Project.

  • Change to the directory in which you want to install Apache Ant and extract the bundle

  • Set the ANT_HOME environment variable to point to the apache-ant-<version> directory

  • Add <ANT_HOME>/bin directory to the environment variable PATH

1.3 Hardware Requirements

The following section lists the hardware requirements for the Jakarta EE 8 CTS software, using the Jakarta EE 8 CI or Jakarta EE 8 Web Profile CI. Hardware requirements for other compatible implementations will vary.

All systems should meet the following recommended hardware requirements:

  • CPU running at 2.0 GHz or higher

  • 4 GB of RAM or more

  • 2 GB of swap space , if required

  • 6 GB of free disk space for writing data to log files, the Jakarta EE 8 repository, and the database

  • Network access to the Internet

1.4 Software Requirements

You can run the Jakarta EE 8 CTS software on platforms running the Solaris, Linux, Windows, and Mac OS software that meet the following software requirements:

  • Operating Systems:

    • Solaris 10 and newer

    • MAC OS X Mountain Lion (10.8.1+)

    • Windows XP SP3, Windows 2008 R2

    • Oracle Linux 6.4

    • Fedora 18

    • Ubuntu Linux 12.10

    • Suse Enterprise Linux 12.2

  • Java SE 8 SDK

  • Jakarta EE 8 CI or Jakarta EE 8 Web Profile CI

  • Mail server that supports the IMAP and SMTP protocols

  • One of the following databases:

    • Oracle

    • Sybase

    • DB2

    • Microsoft SQL Server

    • Postgres SQL

    • MySQL

    • Apache Derby

1.5 Additional Jakarta EE 8 CTS Requirements

In addition to the instructions and requirements described in this document, all Jakarta EE 8 and Jakarta EE 8 Web Profile implementations must also pass the standalone TCKs for the following technologies:

  • Jakarta Contexts and Dependency Injection 2.0

  • Jakarta Dependency Injection 1.0

  • Jakarta Bean Validation 2.0

For more information about the Jakarta Contexts and Dependency Injection technology, see the specification at LINK TBD (Formerly http://jcp.org/en/jsr/detail?id=365).

For more information about the Jakarta Dependency Injection, see the specification at LINK TBD (Formerly http://jcp.org/en/jsr/detail?id=330).

For more information about the Jakarta Bean Validation technology, see the specification at LINK TBD (Formerly http://jcp.org/en/jsr/detail?id=380).

1.6 Getting Started With the Jakarta EE 8 CTS Test Suite

Installing, configuring, and using the Jakarta EE 8 CTS involves the following general steps:

  1. Download, install, and configure a Jakarta EE 8 CI or Jakarta EE 8 Web Profile CI. For example Eclipse GlassFish 5.1.

  2. Download and install the Jakarta EE 8 CTS package.

  3. Configure your database to work with your CI.

  4. Configure CTS to work with your database and CI.

  5. Run the CTS tests.

The remainder of this guide explains these steps in detail. If you just want to get started quickly with the Jakarta EE 8 CTS using the most basic test configuration, refer to Chapter 4, "Installation."


Previous Next Contents
Eclipse Foundation Logo  Copyright © 2018, Oracle and/or its affiliates. All rights reserved.