org.xmlBlaster.test.qos
Class TestSubNotify
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.xmlBlaster.test.qos.TestSubNotify
- All Implemented Interfaces:
- junit.framework.Test
public class TestSubNotify
- extends junit.framework.TestCase
This client tests the method subscribe() with a later publish() with XPath query.
The subscribe() should be recognized for this later arriving publish()
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.TestSubNotify
java junit.swingui.TestRunner org.xmlBlaster.test.qos.TestSubNotify
Method Summary |
private void |
erase()
|
static void |
main(java.lang.String[] args)
Invoke: java org.xmlBlaster.test.qos.TestSubNotify |
private void |
publish()
|
protected void |
setUp()
Connect to xmlBlaster and login |
private void |
subscribe(boolean wantNotify)
|
static junit.framework.Test |
suite()
|
protected void |
tearDown()
|
void |
testNoNotify()
|
void |
testNotify()
|
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 |
glob
private final Global glob
log
private static java.util.logging.Logger log
publishOid
private java.lang.String publishOid
senderConnection
private I_XmlBlasterAccess senderConnection
senderName
private java.lang.String senderName
msgInterceptor
private MsgInterceptor msgInterceptor
TestSubNotify
public TestSubNotify(Global glob,
java.lang.String testName)
- Parameters:
testName
- The name used in the test suiteloginName
- The name to login to the xmlBlaster
setUp
protected void setUp()
- Connect to xmlBlaster and login
- Overrides:
setUp
in class junit.framework.TestCase
tearDown
protected void tearDown()
- Overrides:
tearDown
in class junit.framework.TestCase
erase
private void erase()
subscribe
private void subscribe(boolean wantNotify)
publish
private void publish()
testNotify
public void testNotify()
testNoNotify
public void testNoNotify()
suite
public static junit.framework.Test suite()
main
public static void main(java.lang.String[] args)
- Invoke: java org.xmlBlaster.test.qos.TestSubNotify
Copyright © 1999-2014 The xmlBlaster.org contributers.