|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.xmlBlaster.test.dispatch.TestPriorizedDispatchWithLostCallback
public class TestPriorizedDispatchWithLostCallback
This client tests the dispatch.control.plugin requirement
We start our own xmlBlaster server in a thread. This client may be invoked multiple time on the same xmlBlaster server, as it cleans up everything after his tests are done.
This tests runs only based on XmlRpc, as with xmlrpc we can easily start/stop the callback server independent from our connection
Invoke examples:java junit.textui.TestRunner org.xmlBlaster.test.dispatch.TestPriorizedDispatchWithLostCallback java junit.swingui.TestRunner -noloading org.xmlBlaster.test.dispatch.TestPriorizedDispatchWithLostCallback
PriorizedDispatchPlugin
Field Summary | |
---|---|
private java.lang.String |
BACKUP_LINE
|
private I_XmlBlasterAccess |
con
|
private ConnectQos |
connectQos
|
private java.lang.String |
DEAD_LINE
|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
msgOid
|
private int |
msgSequenceNumber
|
private java.lang.String |
name
|
private java.lang.String |
NORMAL_LINE
|
private java.lang.String |
passwd
|
private int |
serverPort
|
private EmbeddedXmlBlaster |
serverThread
|
private java.lang.String |
statusOid
|
private MsgInterceptor |
updateInterceptor
|
private MsgInterceptor |
updateMsgs
|
Constructor Summary | |
---|---|
TestPriorizedDispatchWithLostCallback(Global glob,
java.lang.String testName,
java.lang.String name)
Constructs the TestPriorizedDispatchWithLostCallback object. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Invoke: |
private void |
publish(java.lang.String oid,
int priority)
|
private void |
publishNewConfig(java.lang.String config)
Change the configuration of the plugin |
protected void |
setUp()
Sets up the fixture. |
private void |
subscribe(java.lang.String oid)
|
static junit.framework.Test |
suite()
Method is used by TestRunner to load these tests |
protected void |
tearDown()
Tears down the fixture. |
void |
testPriorizedDispatchPluginConnectionState()
Tests what happens if dispatcher frameworks looses the callback connection to us and starts polling |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
---|
private Global glob
private static java.util.logging.Logger log
private ConnectQos connectQos
private I_XmlBlasterAccess con
private java.lang.String name
private java.lang.String passwd
private EmbeddedXmlBlaster serverThread
private int serverPort
private MsgInterceptor updateInterceptor
private MsgInterceptor updateMsgs
private final java.lang.String msgOid
private int msgSequenceNumber
private java.lang.String statusOid
private java.lang.String NORMAL_LINE
private java.lang.String BACKUP_LINE
private java.lang.String DEAD_LINE
Constructor Detail |
---|
public TestPriorizedDispatchWithLostCallback(Global glob, java.lang.String testName, java.lang.String name)
testName
- The name used in the test suitename
- The name to login to the xmlBlasterMethod Detail |
---|
protected void setUp()
setUp
in class junit.framework.TestCase
private void publish(java.lang.String oid, int priority)
private void publishNewConfig(java.lang.String config)
private void subscribe(java.lang.String oid)
public void testPriorizedDispatchPluginConnectionState()
protected void tearDown()
tearDown
in class junit.framework.TestCase
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
java org.xmlBlaster.test.dispatch.TestPriorizedDispatchWithLostCallback -logging/org.xmlBlaster.engine.dispatch FINE -logging/org.xmlBlaster.util.dispatch FINE -logging/org.xmlBlaster.engine FINEST java -Djava.compiler= junit.textui.TestRunner org.xmlBlaster.test.dispatch.TestPriorizedDispatchWithLostCallback
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |