| net.sourceforge.groboutils.autodoc.v1.testserver |
net.sourceforge.groboutils.autodoc.v1.testserver
Abstract framework to aid subcomponents of the AutoDoc facility to interact
between the JUnit testing suite and a implementation-specific server, which
receives corrolated events from the AutoDoc and JUnit systems. This
framework is itself not specific to JUnit, but it was designed with the
JUnit-style events in mind.
Overview
This framework consists of six different classes which work together to allow
for proper integration between JUnit and AutoDoc, and the
implementation-specific "recorder", or server as it is referenced in this
framework.
The Server interface is where the implementation-specific recorder
receives data from the framework. It receives an event with framework-specific
data, which has been collected over all the calls to the framework during a
single JUnit test.
The Monitor interface handles the calls from both the JUnit and AutoDoc
frameworks. It acts as a singleton for each JUnit test.
The MonitorFinder is a non-singleton which knows how to discover the
pseudo-singleton Monitor, which is shared between the particular JUnit
and AutoDoc framework instances.
The unit of test events is contained in the interface TestData. This
is created by a TestDataFactory, a framework implementation specific
factory in charge of creating TestData instances for the implementation
classes to interact through.
The Monitor acts as a singleton for each individual test by having one
TestInfo for each test, in order to uniquely identify the tests.
The TestCorrelate abstract class provides functionality to create a
TestInfo instance, and integrate it with the TestData through
a MonitorFinder.
|
| Java Source File Name | Type | Comment |
| AbstractWriterServer.java | Class | An interface which corresponds to a part of the framework that knows how
to deal with the framework's TestData. |
| AbstractWriterServerUTest.java | Class | Tests the AbstractWriterServer abstract class. |
| AbstractWriterServerUTestI.java | Class | Tests the AbstractWriterServer abstract class. |
| DefaultMonitor.java | Class | This implemenation of Monitor uses a Hashtable to store the
test data. |
| DefaultMonitorUTest.java | Class | Tests the DefaultMonitor class. |
| DefaultTestData.java | Class | A simple implementation of TestData which only knows about TestInfo. |
| DefaultTestDataUTest.java | Class | Tests the DefaultTestData class. |
| DefaultTestInfo.java | Class | An implementation of TestInfo which is specific to JUnit. |
| DefaultTestInfoUTest.java | Class | Tests the DefaultTestInfo class. |
| Monitor.java | Interface | Monitors the state of multiple tests through the creation, retrieval, and
sending to a server of the TestData for a specific test. |
| MonitorFinder.java | Interface | Generic interface in charge of discovering a specific pseudo-singleton
type of Monitor. |
| MonitorFinderUTestI.java | Class | Tests the MonitorFinder interface. |
| MonitorUTestI.java | Class | Tests the Monitor interface. |
| Server.java | Interface | An interface which corresponds to a part of the framework that knows how
to deal with the framework's TestData. |
| ServerUTestI.java | Class | Tests the Server interface. |
| TestCorrelate.java | Class | Helper method to aid in the use of Monitors and TestData. |
| TestCorrelateUTestI.java | Class | Tests the TestCorrelate interface. |
| TestData.java | Interface | An interface used to briefly describe a test and the gathered data associated
for the test in a particular framework. |
| TestDataFactory.java | Interface | A factory in charge of creating a specific TestData instance from
a TestInfo unique identifier. |
| TestDataFactoryUTestI.java | Class | Tests the TestDataFactory interface. |
| TestDataUTestI.java | Class | Tests the TestData interface. |
| TestInfo.java | Interface | Information about a test which can uniquely identify a specific test. |
| TestInfoUTestI.java | Class | Tests the TestInfo interface. |