com.reuters.msgtest.fixture
Class Response

java.lang.Object
  extended bycom.reuters.msgtest.fixture.Response

public class Response
extends java.lang.Object

Author:
Michael Ward

Field Summary
static int EQUALS
           
static int EQUALSIGNORE
           
static int NONE
           
 
Constructor Summary
Response(SubjectSubstitution subjectSubstitution)
           
 
Method Summary
 void addIgnoredField(java.lang.String field)
           
 int getComparisonMethod()
          Get the value of comparisonMethod that will be used to compare message contents.
 java.util.Set getIgnoredFields()
          Get the value of IgnoredFields.
 int getMaxexpected()
          Get the maximum number of messages expected on this subject.
 int getMinexpected()
          Get the minimum number of messages expected on this subject.
 java.lang.String getName()
          Get the name of this response message.
 java.lang.String getSubject()
           
 com.tibco.tibrv.TibrvMsg getTibrvMsg()
          Get the expected TibrvMsg response message.
 java.lang.String getUri()
           
 void processRvMessage(RvMessage rvMessage)
          todo should this be pulled to an interface? (m2ward)
 void setComparisonMethod(int comparisonMethod)
          Set the value of comparisonMethod.
 void setIgnoredFields(java.util.Set ignoredFields)
          Set the value of IgnoredFields.
 void setMaxexpected(int maxexpected)
          Set the maximum number of messages expected on this subject.
 void setMinexpected(int minexpected)
          Set the minimum number of messages expected on this subject.
 void setName(java.lang.String name)
           
 void setSubject(java.lang.String subject)
           
 void setTibrvMsg(com.tibco.tibrv.TibrvMsg tibrvMsg)
          Set the expected TibrvMsg response message.
 void setUri(java.lang.String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EQUALS

public static final int EQUALS
See Also:
Constant Field Values

EQUALSIGNORE

public static final int EQUALSIGNORE
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values
Constructor Detail

Response

public Response(SubjectSubstitution subjectSubstitution)
Method Detail

addIgnoredField

public void addIgnoredField(java.lang.String field)

getIgnoredFields

public java.util.Set getIgnoredFields()
Get the value of IgnoredFields. These are the tibrvfields that will be ignored when performing an equalsignore comparison operation.

Returns:
value of IgnoredFields.

setIgnoredFields

public void setIgnoredFields(java.util.Set ignoredFields)
Set the value of IgnoredFields.

Parameters:
ignoredFields - The vector of field names in the message to ignore when performing comparison operations.

getUri

public java.lang.String getUri()

setUri

public void setUri(java.lang.String uri)

getSubject

public java.lang.String getSubject()

setSubject

public void setSubject(java.lang.String subject)

getName

public java.lang.String getName()
Get the name of this response message.

Returns:
a String value

setName

public void setName(java.lang.String name)

getMinexpected

public int getMinexpected()
Get the minimum number of messages expected on this subject.

Returns:
value of MinExpected.

setMinexpected

public void setMinexpected(int minexpected)
Set the minimum number of messages expected on this subject.

Parameters:
minexpected - Value to assign to MinExpected.

getMaxexpected

public int getMaxexpected()
Get the maximum number of messages expected on this subject.

Returns:
value of MaxExpected.

setMaxexpected

public void setMaxexpected(int maxexpected)
Set the maximum number of messages expected on this subject.

Parameters:
maxexpected - Value to assign to MaxExpected.

getComparisonMethod

public int getComparisonMethod()
Get the value of comparisonMethod that will be used to compare message contents. This is either EQUALS, all tibrvfields must match, EQUALSIGNORE ignore certain tibrvfields, or NONE, meaning ingore all field values, just ensure a message was received on the subject.

Returns:
value of comparisonMethod.

setComparisonMethod

public void setComparisonMethod(int comparisonMethod)
Set the value of comparisonMethod.

Parameters:
comparisonMethod - Value to assign to comparisonMethod.

getTibrvMsg

public com.tibco.tibrv.TibrvMsg getTibrvMsg()
Get the expected TibrvMsg response message.

Returns:
The expected TibrvMsg.

setTibrvMsg

public void setTibrvMsg(com.tibco.tibrv.TibrvMsg tibrvMsg)
Set the expected TibrvMsg response message.

Parameters:
tibrvMsg - The expected TibrvMsg.

processRvMessage

public void processRvMessage(RvMessage rvMessage)
todo should this be pulled to an interface? (m2ward)

See Also:
Stimulus


Copyright © 2002-2004 The RVTest Team. All Rights Reserved.