|
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.qos.TestSubMultiSubscribe
public class TestSubMultiSubscribe
This client tests a subscribe() with multiSubscribe=false to avoid receiving
duplicate updates from the same topic on multiple subscribes.
This client may be invoked multiple time on the same xmlBlaster server,
as it cleans up everything after his tests are done.
Invoke examples:
java junit.textui.TestRunner org.xmlBlaster.test.qos.TestSubMultiSubscribe java junit.swingui.TestRunner -noloading org.xmlBlaster.test.qos.TestSubMultiSubscribe
Field Summary | |
---|---|
private I_XmlBlasterAccess |
connection
|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private static java.lang.String |
ME
|
private java.lang.String |
myDomain
|
private java.lang.String |
publishOid
|
private java.lang.String |
subscribeId
|
private MsgInterceptor |
updateInterceptor
|
Constructor Summary | |
---|---|
TestSubMultiSubscribe(Global glob,
java.lang.String testName)
Constructs the TestSubMultiSubscribe object. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Deprecated. Use the TestRunner from the testsuite to run it: java -Djava.compiler= junit.textui.TestRunner org.xmlBlaster.test.qos.TestSubMultiSubscribe |
void |
publish()
Construct a message and publish it. |
protected void |
setUp()
Sets up the fixture. |
void |
subscribe(java.lang.String queryString,
java.lang.String queryType,
AccessFilterQos aq,
int numSub)
Subscribe multiple times to the same message with <multiSubscribe>false</multiSubscribe> |
static junit.framework.Test |
suite()
Method is used by TestRunner to load these tests |
protected void |
tearDown()
Tears down the fixture. |
void |
testMultiSubscribeDomain()
TEST: Construct a message and publish it, the first subscription shouldn't receive the message as local==false |
void |
testMultiSubscribeOid()
TEST: Construct a message and publish it, the first subscription shouldn't receive the message as local==false |
void |
testMultiSubscribeXPath()
TEST: Construct a message and publish it, the first subscription shouldn't receive the message as local==false |
void |
testSubscribeReconfigure()
TEST: Change AccessFilter of SubscribeQos and test if reconfiguration works. |
void |
unSubscribe()
unSubscribe twice to same message. |
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 static java.lang.String ME
private final Global glob
private static java.util.logging.Logger log
private java.lang.String subscribeId
private final java.lang.String myDomain
private MsgInterceptor updateInterceptor
private java.lang.String publishOid
private I_XmlBlasterAccess connection
Constructor Detail |
---|
public TestSubMultiSubscribe(Global glob, java.lang.String testName)
testName
- The name used in the test suiteMethod Detail |
---|
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
in class junit.framework.TestCase
public void subscribe(java.lang.String queryString, java.lang.String queryType, AccessFilterQos aq, int numSub)
public void publish()
public void unSubscribe()
public void testMultiSubscribeOid()
public void testMultiSubscribeXPath()
public void testSubscribeReconfigure()
public void testMultiSubscribeDomain()
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
java -Djava.compiler= junit.textui.TestRunner org.xmlBlaster.test.qos.TestSubMultiSubscribe
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |