xmlBlaster 2.1.0 API

org.xmlBlaster.test.jmx
Class TestConnector

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.xmlBlaster.test.jmx.TestConnector
All Implemented Interfaces:
junit.framework.Test, I_Callback

public class TestConnector
extends junit.framework.TestCase
implements I_Callback


Field Summary
private  Global glob
           
private  I_XmlBlasterAccess invokeCon
           
private static java.util.logging.Logger log
           
private static java.lang.String ME
           
(package private)  MethodInvocation mi
           
private  MsgUnit msg
           
private static java.lang.String port
           
private  I_XmlBlasterAccess returnCon
           
private  int serverPort
           
(package private)  SerializeHelper sh
           
 
Constructor Summary
TestConnector(java.lang.String testName)
           
 
Method Summary
protected  void setUp()
           
static junit.framework.Test suite()
          Method is used by TestRunner to load these tests
 void testConnector()
          TEST:

 java.lang.String update(java.lang.String cbSessionId, UpdateKey updateKey, byte[] content, UpdateQos updateQos)
          This is the callback method invoked from xmlBlaster delivering us a new asynchronous message.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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

serverPort

private final int serverPort
See Also:
Constant Field Values

ME

private static final java.lang.String ME
See Also:
Constant Field Values

glob

private Global glob

log

private static java.util.logging.Logger log

returnCon

private I_XmlBlasterAccess returnCon

invokeCon

private I_XmlBlasterAccess invokeCon

msg

private MsgUnit msg

port

private static java.lang.String port

sh

SerializeHelper sh

mi

MethodInvocation mi
Constructor Detail

TestConnector

public TestConnector(java.lang.String testName)
Method Detail

setUp

protected void setUp()
Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Method is used by TestRunner to load these tests


testConnector

public void testConnector()
TEST:


update

public java.lang.String update(java.lang.String cbSessionId,
                               UpdateKey updateKey,
                               byte[] content,
                               UpdateQos updateQos)
This is the callback method invoked from xmlBlaster delivering us a new asynchronous message.

Specified by:
update in interface I_Callback
Parameters:
cbSessionId - The session ID specified by the client which registered the callback. You can specify a cbSessionId during connection (with ConnectQos) and this is bounced back here so you can authenticate the message.
updateKey - The arrived key containing the topic name
content - The arrived message content. This is your payload.
See Also:
I_Callback.update(String, UpdateKey, byte[], UpdateQos)

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.