|
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.classtest.EventPluginTest
public class EventPluginTest
Test Timeout class (scheduling for timeouts).
All methods starting with 'test' and without arguments are invoked automatically Invoke: java -Djava.compiler= junit.textui.TestRunner -noloading org.xmlBlaster.test.classtest.EventPluginTest
Timeout
Field Summary | |
---|---|
private EmbeddedXmlBlaster |
embeddedServer
|
private static java.util.logging.Logger |
log
|
Constructor Summary | |
---|---|
EventPluginTest(java.lang.String name)
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
private void |
startServer()
|
private void |
stopServer()
|
void |
testQueueEventsWithoutWildcards()
|
void |
testQueueEventsWithWildcards()
We start an embedded server where we define an EventPlugin to fire on two events: on all callback queues (all users) 70 % of the maximum has been reached (maximum is 10 Entries) on all topics when the history queue reaches 4 We then connect one failsafe client, make a subscription and leave the server (without logging out) to keep the entries in the callback queue (and in the history queue). |
void |
testRegex()
Test a simple timeout |
java.lang.String |
update(java.lang.String cbSessionId,
UpdateKey updateKey,
byte[] content,
UpdateQos updateQos)
here come the updates for the test client. |
private void |
writePluginsFile(java.lang.String port,
java.lang.String eventTypes)
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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.util.logging.Logger log
private EmbeddedXmlBlaster embeddedServer
Constructor Detail |
---|
public EventPluginTest(java.lang.String name)
Method Detail |
---|
private void writePluginsFile(java.lang.String port, java.lang.String eventTypes)
private void startServer()
private void stopServer()
public void testRegex()
public void testQueueEventsWithoutWildcards()
public void testQueueEventsWithWildcards()
public java.lang.String update(java.lang.String cbSessionId, UpdateKey updateKey, byte[] content, UpdateQos updateQos) throws XmlBlasterException
update
in interface I_Callback
cbSessionId
- updateKey
- content
- updateQos
-
XmlBlasterException
I_XmlBlasterAccess
public static void main(java.lang.String[] args)
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |