CDI TCK Community Documentation

- Prev
- Next

## Preface

This guide describes how to download, install, configure, and run the Technology Compatibility Kit (TCK) used to verify the compatibility of an implementation of the JSR 365: Contexts and Dependency Injection for Java 2.0.

The CDI TCK is built atop TestNG framework and Arquillian platform. The CDI TCK uses the Arquillian version 1.1.11.Final to execute the test suite.

The CDI TCK is provided under Apache Public License 2.0.

## 1. Who Should Use This Book

This guide is for implementors of the Context and Dependency Injection for Java 2.0 technology to assist in running the test suite that verifies the compatibility of their implementation.

## 2. Before You Read This Book

Before reading this guide, you should familiarize yourself with the Java EE programming model, specifically the Enterprise JavaBeans (EJB) 3.1 and the Contexts and Dependency Injection for Java 2.0 specifications. A good resource for the Java EE programming model is the JCP web site.

The CDI TCK is based on the Context and Dependency Injection for Java 2.0 technology specification (JSR 365). Information about the specification, including links to the specification documents, can be found on the JSR 365 JCP page.

Before running the tests in the CDI TCK, read and become familiar with the Arquillian testing platform. A good starting point could be a series of Arquillian Guides.

## 3. How This Book Is Organized

If you are running the CDI TCK for the first time, read Chapter 1, Introduction (CDI TCK) completely for the necessary background information about the TCK. Once you have reviewed that material, perform the steps outlined in the remaining chapters.

- Chapter 1, Introduction (CDI TCK) gives an overview of the principles that apply generally to all Technology Compatibility Kits (TCKs), outlines the appeals process and describes the CDI TCK architecture and components. It also includes a broad overview of how the TCK is executed and lists the platforms on which the TCK has been tested and verified.
- Chapter 2, Appeals Process explains the process to be followed by an implementor, who wish to challenge any test in the TCK.
- Chapter 3, Installation explains where to obtain the required software for the CDI TCK and how to install it. It covers both the primary TCK components as well as tools useful for troubleshooting tests.
- Chapter 4, Configuration details the configuration of the JBoss Test Harness, how to create a TCK runner for the TCK test suite and the mechanics of how an in-container test is conducted.
- Chapter 5, Reporting explains the test reports that are generated by the TCK test suite and introduces the TCK audit report as a tool for measuring the completeness of the TCK in testing the JSR 365 specification and in understanding how testcases relate to the specification.
- Chapter 7, Executing the Test Suite documents how the TCK test suite is executed. It covers both modes supported by the TCK, standalone and in-container, and shows how to dump the generated test artifacts to disk.
- Chapter 8, Running Tests in Eclipse shows how to run individual tests in Eclipse and advises the best way to setup your Eclipse workspace for running the tests.
- Chapter 9, Debugging Tests in Eclipse builds on Chapter 8, Running Tests in Eclipse by detailing how to debug individual tests in Eclipse.

- PrevTechnology Compatibility Kit Reference Guide for ...
- Top of page
- Front page
- NextPart I. Getting Acquainted with the TCK