xmlBlaster 2.2.0 API

org.xmlBlaster.test.qos
Class TestSubNotify

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by 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
 


Field Summary
private  Global glob
           
private static java.util.logging.Logger log
           
private  MsgInterceptor msgInterceptor
           
private  java.lang.String publishOid
           
private  I_XmlBlasterAccess senderConnection
           
private  java.lang.String senderName
           
 
Constructor Summary
TestSubNotify(Global glob, java.lang.String testName)
           
 
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
 

Field Detail

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
Constructor Detail

TestSubNotify

public TestSubNotify(Global glob,
                     java.lang.String testName)
Parameters:
testName - The name used in the test suite
loginName - The name to login to the xmlBlaster
Method Detail

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


xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.