xmlBlaster 2.2.0 API

org.xmlBlaster.test
Class Msg

java.lang.Object
  extended by junit.framework.Assert
      extended by org.xmlBlaster.test.Msg

public class Msg
extends junit.framework.Assert

Helper for testsuite to store a received message with update()


Field Summary
private  java.lang.String cbSessionId
           
private  byte[] content
           
private  UpdateKey updateKey
           
private  UpdateQos updateQos
           
 
Constructor Summary
Msg(java.lang.String cbSessionId, UpdateKey updateKey, byte[] content, UpdateQos updateQos)
           
 
Method Summary
 void compareMsg(MsgUnit msgUnit)
          Check if the given message (usually published) is the one we hold (usually updated).
 void compareMsg(PublishReturnQos retQos)
          Check if the given PublishReturnQos (from a publisher) is the one we hold (usually updated).
 java.lang.String getCbSessionId()
           
 byte[] getContent()
           
 int getContentInt()
           
 java.lang.String getContentStr()
           
 java.lang.String getOid()
           
 java.lang.String getState()
           
 UpdateKey getUpdateKey()
           
 UpdateQos getUpdateQos()
           
 java.lang.String toString()
           
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cbSessionId

private java.lang.String cbSessionId

updateKey

private UpdateKey updateKey

content

private byte[] content

updateQos

private UpdateQos updateQos
Constructor Detail

Msg

public Msg(java.lang.String cbSessionId,
           UpdateKey updateKey,
           byte[] content,
           UpdateQos updateQos)
Method Detail

getCbSessionId

public java.lang.String getCbSessionId()

getContent

public byte[] getContent()

getContentStr

public java.lang.String getContentStr()

getContentInt

public int getContentInt()
Throws:
java.lang.IllegalArgumentException

getUpdateKey

public UpdateKey getUpdateKey()

getOid

public java.lang.String getOid()

getUpdateQos

public UpdateQos getUpdateQos()

getState

public java.lang.String getState()

compareMsg

public void compareMsg(MsgUnit msgUnit)
Check if the given message (usually published) is the one we hold (usually updated). throws a junit assert on error

Parameters:
msgUnit - the expected message

compareMsg

public void compareMsg(PublishReturnQos retQos)
Check if the given PublishReturnQos (from a publisher) is the one we hold (usually updated). throws a junit assert on error

Parameters:
retQos - the expected data

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.