org.sandev.basics.MessageDriver
Class MessageDriverNodeDecl

java.lang.Object
  extended byorg.sandev.basics.MessageDriver.MessageDriverNodeDecl
Direct Known Subclasses:
MessageDriverNodeBase, MessageDriverNodeInstance

public class MessageDriverNodeDecl
extends java.lang.Object

MessageDriver generates outgoing messages and checks incoming messages in accordance with the TestScript specifications. Several TestScripts can be configured to run in succession. At the conclusion of all TestScript runs, the MessageDriver signals for system termination.

The MessageDriver can query any node instance, and subscribe to any node instance, using the information in the testscript itself. It is not configured for messaging as a standard node.

When a node is being unit tested, its instance declaration has all of its messaging parameters set to be the MessageDriver instance. This enables the MessageDriver to fully test all I/O for the node.

inbound synchronous message calls:

outbound asynchronous message sends:


Field Summary
protected  java.lang.String basePath
          A path specification which should be prepended to all TestScript file specifications.
protected  java.lang.String[] testScripts
          Full filename specifications of serialized TestScript message instances to be loaded and run in succession.
 
Constructor Summary
MessageDriverNodeDecl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

basePath

protected java.lang.String basePath
A path specification which should be prepended to all TestScript file specifications. This is useful in keeping the testScripts parameter more readable when all the testscripts are in one directory, or in several closely related directories.


testScripts

protected java.lang.String[] testScripts
Full filename specifications of serialized TestScript message instances to be loaded and run in succession.

Constructor Detail

MessageDriverNodeDecl

public MessageDriverNodeDecl()