public class

TestDirectory

extends Object
java.lang.Object
   ↳ org.ops4j.pax.exam.TestDirectory

Class Overview

A singleton directory which keeps track of all tests in a suite. A test is a single method of a given test class in a given configuration. In particular, individual test methods may occur multiple times in different configurations.

A test address is a unique identifier for a test. A probe lists the addresses of all tests it contains.

This directory maps test addresses to test instantiation instructions which enable a probe invoker to actually build a test method invocation from the test address.

In addition, this directory contains an access point URI which may be used for accessing a remote container. At the moment, this is only used by the Servlet Bridge in Java EE mode: In this case, the access point corresponds to the context root of the probe web application.

Summary

Public Methods
void add(TestAddress address, TestInstantiationInstruction instruction)
void clear()
URI getAccessPoint()
static TestDirectory getInstance()
TestInstantiationInstruction lookup(TestAddress address)
void setAccessPoint(URI accessPoint)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void add (TestAddress address, TestInstantiationInstruction instruction)

public void clear ()

public URI getAccessPoint ()

public static TestDirectory getInstance ()

public TestInstantiationInstruction lookup (TestAddress address)

public void setAccessPoint (URI accessPoint)