C# 클래스 Apache.NMS.Test.NMSTestSupport

useful base class for test cases
파일 보기 프로젝트 열기: ThorTech/apache-nms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
clientId string
idCounter int
passWord string
receiveTimeout System.TimeSpan
testRun int
userName string

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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 ( XmlElement uriNode ) : object[]

Get the parameters for the ConnectionFactory from the configuration file.

GetNameTestURI ( ) : string

The name of the connection configuration that CreateNMSFactory() will load.

GetNodeValueAttribute ( XmlElement parentNode, string nodeName, string dflt ) : string

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.

비공개 메소드들

메소드 설명
GetConfigSearchPaths ( ) : string[]
NMSTestSupport ( ) : System
SetUp ( ) : void
TearDown ( ) : void

메소드 상세

AssertEquals() 보호된 메소드

protected AssertEquals ( IMessage m1, IMessage m2 ) : void
m1 IMessage
m2 IMessage
리턴 void

AssertEquals() 보호된 메소드

protected AssertEquals ( IMessage m1, IMessage m2, string message ) : void
m1 IMessage
m2 IMessage
message string
리턴 void

AssertEquals() 보호된 메소드

protected AssertEquals ( ITextMessage m1, ITextMessage m2 ) : void
m1 ITextMessage
m2 ITextMessage
리턴 void

AssertTextMessageEqual() 보호된 메소드

protected AssertTextMessageEqual ( ITextMessage m1, ITextMessage m2, string message ) : void
m1 ITextMessage
m2 ITextMessage
message string
리턴 void

AssertTextMessagesEqual() 보호된 메소드

protected AssertTextMessagesEqual ( IMessage firstSet, IMessage secondSet ) : void
firstSet IMessage
secondSet IMessage
리턴 void

AssertTextMessagesEqual() 보호된 메소드

protected AssertTextMessagesEqual ( IMessage firstSet, IMessage secondSet, string messsage ) : void
firstSet IMessage
secondSet IMessage
messsage string
리턴 void

CreateConnection() 공개 메소드

Create a new connection to the broker.
public CreateConnection ( ) : IConnection
리턴 IConnection

CreateConnection() 공개 메소드

Create a new connection to the broker.
public CreateConnection ( string newClientId ) : IConnection
newClientId string Client ID of the new connection.
리턴 IConnection

CreateDestination() 공개 메소드

public CreateDestination ( ISession session, DestinationType type ) : IDestination
session ISession
type DestinationType
리턴 IDestination

CreateDestination() 공개 메소드

public CreateDestination ( ISession session, DestinationType type, string name ) : IDestination
session ISession
type DestinationType
name string
리턴 IDestination

CreateDestination() 공개 메소드

Create a destination. This will delete an existing destination and re-create it.
public CreateDestination ( ISession session, string destinationName ) : IDestination
session ISession
destinationName string
리턴 IDestination

CreateNMSFactory() 보호된 메소드

Create the NMS Factory that can create NMS Connections.
protected CreateNMSFactory ( ) : bool
리턴 bool

CreateNMSFactory() 보호된 메소드

Create the NMS Factory that can create NMS Connections. This function loads the connection settings from the configuration file.
protected CreateNMSFactory ( string nameTestURI ) : bool
nameTestURI string The named connection configuration.
리턴 bool

GetConfiguredConnectionURI() 보호된 메소드

Return the configured URI String. This function loads the connection settings from the configuration file.
protected GetConfiguredConnectionURI ( ) : string
리턴 string

GetConnectionConfigFileName() 보호된 메소드

Name of the connection configuration filename.
protected GetConnectionConfigFileName ( ) : string
리턴 string

GetEnvVar() 공개 정적인 메소드

Get environment variable value.
public static GetEnvVar ( string varName, string defaultValue ) : string
varName string
defaultValue string
리턴 string

GetFactoryParams() 보호된 메소드

Get the parameters for the ConnectionFactory from the configuration file.
protected GetFactoryParams ( XmlElement uriNode ) : object[]
uriNode System.Xml.XmlElement Parent node of the factoryParams node.
리턴 object[]

GetNameTestURI() 보호된 메소드

The name of the connection configuration that CreateNMSFactory() will load.
protected GetNameTestURI ( ) : string
리턴 string

GetNodeValueAttribute() 보호된 정적인 메소드

protected static GetNodeValueAttribute ( XmlElement parentNode, string nodeName, string dflt ) : string
parentNode System.Xml.XmlElement
nodeName string
dflt string
리턴 string

GetTestClientId() 공개 메소드

public GetTestClientId ( ) : string
리턴 string

RegisterDurableConsumer() 보호된 메소드

Register a durable consumer
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
리턴 void

ReplaceEnvVar() 공개 정적인 메소드

Replace embedded variable markups with environment variable values. Variable markups are of the following form: ${varname}
public static ReplaceEnvVar ( string srcText ) : string
srcText string
리턴 string

ReplaceEnvVar() 공개 정적인 메소드

Replace the variable with environment variable.
public static ReplaceEnvVar ( string srcText, string varName, string defaultValue ) : string
srcText string
varName string
defaultValue string
리턴 string

SendMessages() 공개 메소드

public SendMessages ( IConnection connection, IDestination destination, MsgDeliveryMode deliveryMode, int count ) : void
connection IConnection
destination IDestination
deliveryMode MsgDeliveryMode
count int
리턴 void

SendMessages() 공개 메소드

public SendMessages ( IDestination destination, MsgDeliveryMode deliveryMode, int count ) : void
destination IDestination
deliveryMode MsgDeliveryMode
count int
리턴 void

SendMessages() 공개 메소드

public SendMessages ( ISession session, IDestination destination, MsgDeliveryMode deliveryMode, int count ) : void
session ISession
destination IDestination
deliveryMode MsgDeliveryMode
count int
리턴 void

ToHex() 공개 정적인 메소드

public static ToHex ( long value ) : string
value long
리턴 string

UnregisterDurableConsumer() 보호된 메소드

Unregister a durable consumer for the given connection ID.
protected UnregisterDurableConsumer ( string connectionID, string consumerID ) : void
connectionID string Connection ID of the consumer.
consumerID string Name of the durable consumer.
리턴 void

프로퍼티 상세

clientId 보호되어 있는 프로퍼티

protected string clientId
리턴 string

idCounter 보호되어 있는 프로퍼티

protected int idCounter
리턴 int

passWord 보호되어 있는 프로퍼티

protected string passWord
리턴 string

receiveTimeout 보호되어 있는 프로퍼티

protected TimeSpan,System receiveTimeout
리턴 System.TimeSpan

testRun 보호되어 있는 프로퍼티

protected int testRun
리턴 int

userName 보호되어 있는 프로퍼티

protected string userName
리턴 string