|
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.TestPtSession
public class TestPtSession
This client tests the engine.qos.publish.destination.PtPa href="http://www.xmlblaster.org/xmlBlaster/doc/requirements/engine.qos.publish.destination.PtP.html">engine.qos.publish.destination.PtP requirement
We login as a publisher for PtP messages and many receivers. Depending on the destination name a message is sent to all sessions or only to specified sessions of the same user. 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.
Invoke examples:
java junit.textui.TestRunner -noloading org.xmlBlaster.test.qos.TestPtSession java junit.swingui.TestRunner -noloading org.xmlBlaster.test.qos.TestPtSession
Nested Class Summary | |
---|---|
(package private) class |
TestPtSession.ConHolder
|
Field Summary | |
---|---|
private TestPtSession.ConHolder[] |
conHolderArr
|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
msgOid
|
private int |
msgSequenceNumber
|
private java.lang.String |
name
|
private int |
numCons
|
private java.lang.String |
passwd
|
private int |
serverPort
|
private EmbeddedXmlBlaster |
serverThread
|
private boolean |
startEmbedded
|
Constructor Summary | |
---|---|
TestPtSession(Global glob,
java.lang.String testName,
java.lang.String name)
Constructs the TestPtSession object. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Invoke: |
private void |
publish(TestPtSession.ConHolder conHolder,
java.lang.String oid,
SessionName[] sessionNameArr)
|
protected void |
setUp()
Sets up the fixture. |
static junit.framework.Test |
suite()
Method is used by TestRunner to load these tests |
protected void |
tearDown()
Tears down the fixture. |
void |
testPtSession()
Test all tuples of possibilities |
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 int numCons
private TestPtSession.ConHolder[] conHolderArr
private java.lang.String name
private java.lang.String passwd
private EmbeddedXmlBlaster serverThread
private int serverPort
private boolean startEmbedded
private final java.lang.String msgOid
private int msgSequenceNumber
Constructor Detail |
---|
public TestPtSession(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(TestPtSession.ConHolder conHolder, java.lang.String oid, SessionName[] sessionNameArr)
public void testPtSession()
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.qos.TestPtSession -logging/org.xmlBlaster.client.qos FINE -logging/org.xmlBlaster.util.qos FINE -logging/org.xmlBlaster.engine FINEST -startEmbedded false java -Djava.compiler= junit.textui.TestRunner -noloading org.xmlBlaster.test.qos.TestPtSession
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |