Property | Type | Description | |
---|---|---|---|
clientId | string | ||
idCounter | int | ||
passWord | string | ||
receiveTimeout | System.TimeSpan | ||
testRun | int | ||
userName | string |
Method | Description | |
---|---|---|
CreateConnection ( ) : IConnection |
Create a new connection to the broker.
|
|
CreateConnection ( string newClientId ) : IConnection |
Create a new connection to the broker.
|
|
CreateDestination ( ISession session, DestinationType type ) : IDestination | ||
CreateDestination ( ISession session, DestinationType type, string name ) : IDestination | ||
CreateDestination ( ISession session, string destinationName ) : IDestination |
Create a destination. This will delete an existing destination and re-create it.
|
|
GetEnvVar ( string varName, string defaultValue ) : string |
Get environment variable value.
|
|
GetTestClientId ( ) : string | ||
ReplaceEnvVar ( string srcText ) : string |
Replace embedded variable markups with environment variable values. Variable markups are of the following form: ${varname}
|
|
ReplaceEnvVar ( string srcText, string varName, string defaultValue ) : string |
Replace the variable with environment variable.
|
|
SendMessages ( IConnection connection, IDestination destination, MsgDeliveryMode deliveryMode, int count ) : void | ||
SendMessages ( IDestination destination, MsgDeliveryMode deliveryMode, int count ) : void | ||
SendMessages ( ISession session, IDestination destination, MsgDeliveryMode deliveryMode, int count ) : void | ||
ToHex ( long value ) : string |
Method | Description | |
---|---|---|
AssertEquals ( IMessage m1, IMessage m2 ) : void | ||
AssertEquals ( IMessage m1, IMessage m2, string message ) : void | ||
AssertEquals ( ITextMessage m1, ITextMessage m2 ) : void | ||
AssertTextMessageEqual ( ITextMessage m1, ITextMessage m2, string message ) : void | ||
AssertTextMessagesEqual ( IMessage firstSet, IMessage secondSet ) : void | ||
AssertTextMessagesEqual ( IMessage firstSet, IMessage secondSet, string messsage ) : void | ||
CreateNMSFactory ( ) : bool |
Create the NMS Factory that can create NMS Connections.
|
|
CreateNMSFactory ( string nameTestURI ) : bool |
Create the NMS Factory that can create NMS Connections. This function loads the connection settings from the configuration file.
|
|
GetConfiguredConnectionURI ( ) : string |
Return the configured URI String. This function loads the connection settings from the configuration file.
|
|
GetConnectionConfigFileName ( ) : string |
Name of the connection configuration filename.
|
|
GetFactoryParams ( |
Get the parameters for the ConnectionFactory from the configuration file.
|
|
GetNameTestURI ( ) : string |
The name of the connection configuration that CreateNMSFactory() will load.
|
|
GetNodeValueAttribute ( |
|
|
RegisterDurableConsumer ( string connectionID, string destination, string consumerID, string selector, bool noLocal ) : void |
Register a durable consumer
|
|
UnregisterDurableConsumer ( string connectionID, string consumerID ) : void |
Unregister a durable consumer for the given connection ID.
|
Method | Description | |
---|---|---|
GetConfigSearchPaths ( ) : string[] | ||
NMSTestSupport ( ) : System | ||
SetUp ( ) : void | ||
TearDown ( ) : void |
protected AssertEquals ( IMessage m1, IMessage m2 ) : void | ||
m1 | IMessage | |
m2 | IMessage | |
return | void |
protected AssertEquals ( IMessage m1, IMessage m2, string message ) : void | ||
m1 | IMessage | |
m2 | IMessage | |
message | string | |
return | void |
protected AssertEquals ( ITextMessage m1, ITextMessage m2 ) : void | ||
m1 | ITextMessage | |
m2 | ITextMessage | |
return | void |
protected AssertTextMessageEqual ( ITextMessage m1, ITextMessage m2, string message ) : void | ||
m1 | ITextMessage | |
m2 | ITextMessage | |
message | string | |
return | void |
protected AssertTextMessagesEqual ( IMessage firstSet, IMessage secondSet ) : void | ||
firstSet | IMessage | |
secondSet | IMessage | |
return | void |
protected AssertTextMessagesEqual ( IMessage firstSet, IMessage secondSet, string messsage ) : void | ||
firstSet | IMessage | |
secondSet | IMessage | |
messsage | string | |
return | void |
public CreateConnection ( string newClientId ) : IConnection | ||
newClientId | string | Client ID of the new connection. |
return | IConnection |
public CreateDestination ( ISession session, DestinationType type ) : IDestination | ||
session | ISession | |
type | DestinationType | |
return | IDestination |
public CreateDestination ( ISession session, DestinationType type, string name ) : IDestination | ||
session | ISession | |
type | DestinationType | |
name | string | |
return | IDestination |
public CreateDestination ( ISession session, string destinationName ) : IDestination | ||
session | ISession | |
destinationName | string | |
return | IDestination |
protected CreateNMSFactory ( string nameTestURI ) : bool | ||
nameTestURI | string | The named connection configuration. |
return | bool |
protected GetConfiguredConnectionURI ( ) : string | ||
return | string |
protected GetConnectionConfigFileName ( ) : string | ||
return | string |
public static GetEnvVar ( string varName, string defaultValue ) : string | ||
varName | string | |
defaultValue | string | |
return | string |
protected GetFactoryParams ( |
||
uriNode | Parent node of the factoryParams node. | |
return | object[] |
protected static GetNodeValueAttribute ( |
||
parentNode | ||
nodeName | string | |
dflt | string | |
return | string |
protected RegisterDurableConsumer ( string connectionID, string destination, string consumerID, string selector, bool noLocal ) : void | ||
connectionID | string | Connection ID of the consumer. |
destination | string | Destination name to register. Supports embedded prefix names. |
consumerID | string | Name of the durable consumer. |
selector | string | Selector parameters for consumer. |
noLocal | bool | |
return | void |
public static ReplaceEnvVar ( string srcText ) : string | ||
srcText | string | |
return | string |
public static ReplaceEnvVar ( string srcText, string varName, string defaultValue ) : string | ||
srcText | string | |
varName | string | |
defaultValue | string | |
return | string |
public SendMessages ( IConnection connection, IDestination destination, MsgDeliveryMode deliveryMode, int count ) : void | ||
connection | IConnection | |
destination | IDestination | |
deliveryMode | MsgDeliveryMode | |
count | int | |
return | void |
public SendMessages ( IDestination destination, MsgDeliveryMode deliveryMode, int count ) : void | ||
destination | IDestination | |
deliveryMode | MsgDeliveryMode | |
count | int | |
return | void |
public SendMessages ( ISession session, IDestination destination, MsgDeliveryMode deliveryMode, int count ) : void | ||
session | ISession | |
destination | IDestination | |
deliveryMode | MsgDeliveryMode | |
count | int | |
return | void |
protected UnregisterDurableConsumer ( string connectionID, string consumerID ) : void | ||
connectionID | string | Connection ID of the consumer. |
consumerID | string | Name of the durable consumer. |
return | void |