|
xmlBlaster 2.1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.xmlBlaster.test.cluster.SubscribeTest
public class SubscribeTest
Test publishing a message from bilbo to heron.
java -Djava.compiler= junit.textui.TestRunner -noloading org.xmlBlaster.test.cluster.SubscribeTestNOTE: asserts() in update() methods are routed back to server and are not handled by the junit testsuite, so we check double (see code).
| Field Summary | |
|---|---|
private I_XmlBlasterAccess |
avalonCon
|
private I_XmlBlasterAccess |
bilboCon
|
private I_XmlBlasterAccess |
bilboCon2
|
private java.lang.String |
contentStr
|
private java.lang.String |
domain
|
private I_XmlBlasterAccess |
frodoCon
|
private Global |
glob
|
private I_XmlBlasterAccess |
golanCon
|
private I_XmlBlasterAccess |
heronCon
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
ME
|
private java.lang.String |
oid
|
private ServerHelper |
serverHelper
|
private int |
updateCounterBilbo
|
private int |
updateCounterBilbo2
|
| Constructor Summary | |
|---|---|
SubscribeTest(java.lang.String name)
|
|
| Method Summary | |
|---|---|
protected void |
setUp()
Initialize the test ... |
protected void |
tearDown()
cleaning up ... |
void |
testSubscribe()
We start all nodes as described in requirement cluster 1. |
void |
testSubscribeTwice()
We start all nodes as described in requirement cluster - Subscribe to RUGBY messages from bilbo twice - publish RUGBY messages to avalon (heron is the master) - Kill bilbo, restart bilbo and check if we still get them |
private void |
waitOnUpdate(long timeout,
int numWait)
|
| 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 java.lang.String ME
private Global glob
private static java.util.logging.Logger log
private ServerHelper serverHelper
private I_XmlBlasterAccess heronCon
private I_XmlBlasterAccess avalonCon
private I_XmlBlasterAccess golanCon
private I_XmlBlasterAccess frodoCon
private I_XmlBlasterAccess bilboCon
private I_XmlBlasterAccess bilboCon2
private int updateCounterBilbo
private int updateCounterBilbo2
private java.lang.String oid
private java.lang.String domain
private java.lang.String contentStr
| Constructor Detail |
|---|
public SubscribeTest(java.lang.String name)
| Method Detail |
|---|
protected void setUp()
setUp in class junit.framework.TestCaseprotected void tearDown()
tearDown in class junit.framework.TestCasepublic void testSubscribeTwice()
public void testSubscribe()
private void waitOnUpdate(long timeout,
int numWait)
|
xmlBlaster 2.1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||