org.sandev.basics.structs
Class TestScriptStruct

java.lang.Object
  extended byorg.sandev.basics.structs.TestScriptStruct
Direct Known Subclasses:
TestScript

public class TestScriptStruct
extends java.lang.Object

A TestScript is a directive to generate and/or verify a particular sequence of messaging events. A TestScript is typically executed by a MessageDriver to drive activity in a deployed configuration.

TestScripts are not persistent. They are typically serialized and loaded from their serialized form as part of the driver node startup. Associations of TestScripts, and TestScript instances are edited from the management interface.


Field Summary
protected  DeliveryStreamStruct[] asynchIn
          This allows for testing of general information by subscribing the MessageDriver node to zero or more other nodes.
protected  SandMessage[] asynchOut
          This allows testing of subscription listeners by connecting them to the driver as the source.
protected  ReceiveReturnStruct[] queriesToAccept
          This allows the driver node to accept an incoming query and send a stock response.
protected  CallResponseStruct[] queriesToMake
          This allows querying other nodes from the driver node to verify a correct response.
protected  java.lang.String validatorClass
          Classname of the test validator.
 
Constructor Summary
TestScriptStruct()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validatorClass

protected java.lang.String validatorClass
Classname of the test validator. The fully qualified name of the MessageValidator which will be used to confirm test conditions matched by the MessageDriver. If no Validator is specified, the default ConfirmationValidator is used.

declared default value: ""
declared invalid value: "SANDEV_INVALID_VALIDATOR_CLASS"
Length in characters, normal: 60 max: 80

asynchIn

protected DeliveryStreamStruct[] asynchIn
This allows for testing of general information by subscribing the MessageDriver node to zero or more other nodes. The MessageDriver checks that the expected messages are produced, and no erroneous messages are produced.


asynchOut

protected SandMessage[] asynchOut
This allows testing of subscription listeners by connecting them to the driver as the source.


queriesToMake

protected CallResponseStruct[] queriesToMake
This allows querying other nodes from the driver node to verify a correct response.


queriesToAccept

protected ReceiveReturnStruct[] queriesToAccept
This allows the driver node to accept an incoming query and send a stock response. Generally this is used for module testing a single node: when the node queries for its setup data, that query is routed to the driver node, which returns the stock setup info.

Constructor Detail

TestScriptStruct

public TestScriptStruct()