| java.lang.Object net.sourceforge.groboutils.autodoc.v1.testserver.DefaultMonitor
All known Subclasses: net.sourceforge.groboutils.pmti.v1.autodoc.v1.ITFMonitor,
DefaultMonitor | public class DefaultMonitor implements Monitor(Code) | | This implemenation of Monitor uses a Hashtable to store the
test data.
author: Matt Albrecht groboclown@users.sourceforge.net since: March 17, 2002 version: $Date: 2003/05/27 13:30:16 $ |
Constructor Summary | |
public | DefaultMonitor(Server s, TestDataFactory f) Constructor for a Monitor requiring a reference to the Server which will
receive the completed TestData structures, and a reference to
a factory for creating new TestData instances for the particular
framework this Monitor belongs to.
Parameters: s - the server to receive completed TestData entities.This cannot be null. Parameters: f - the factory in charge of creating new TestDataentities. |
DefaultMonitor | public DefaultMonitor(Server s, TestDataFactory f)(Code) | | Constructor for a Monitor requiring a reference to the Server which will
receive the completed TestData structures, and a reference to
a factory for creating new TestData instances for the particular
framework this Monitor belongs to.
Parameters: s - the server to receive completed TestData entities.This cannot be null. Parameters: f - the factory in charge of creating new TestDataentities. This cannot be null. exception: IllegalArgumentException - if s or f isnull. |
addTestData | public void addTestData(TestInfo info)(Code) | | Adds a new TestData instance related to the given
TestInfo. If there already is a TestData for the
given TestInfo, then an exception is thrown.
Parameters: info - the unique test identifier to create a new TestDatainstance for. exception: IllegalStateException - if info is alreadybeen added without having been sent. exception: IllegalArgumentException - if info is null. |
assertNotNull | protected void assertNotNull(TestInfo info)(Code) | | Ensures that info is not null.
|
assertNotNull | protected void assertNotNull(TestData td)(Code) | | Ensures that td is not null.
|
createTestData | protected TestData createTestData(TestInfo info)(Code) | | Creates a new TestData instance for the info object through the
factory. This is guaranteed to never return null.
Parameters: info - the unique test identifier exception: IllegalStateException - if the factory returns null. |
retrieveTestData | protected TestData retrieveTestData(TestInfo info)(Code) | | Retrieves the registered TestData instance for the info. This
may return null.
Parameters: info - the unique test identifier |
sendTestData | public void sendTestData(TestInfo info)(Code) | | Sends the TestData associated with info to the
inner server, and removes the data from the inner cache. If the
info has not been added, then an exception is thrown.
Parameters: info - the unique test identifier exception: IllegalStateException - if info has not been added,or has been removed through the send call. exception: IllegalArgumentException - if info is null. |
sendTestDataToServer | protected void sendTestDataToServer(TestData td)(Code) | | Sends off the test data to the server.
|
|
|