xmlBlaster 2.1.0 API

org.xmlBlaster.test.qos
Class TestSubOneway

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.xmlBlaster.test.qos.TestSubOneway
All Implemented Interfaces:
junit.framework.Test

public class TestSubOneway
extends junit.framework.TestCase

This client tests the oneway callback.
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.TestSubOneway
    java junit.swingui.TestRunner org.xmlBlaster.test.qos.TestSubOneway
 


Field Summary
private  Global glob
           
private static java.util.logging.Logger log
           
private static java.lang.String ME
           
private  MsgInterceptor msgInterceptor
           
private  java.lang.String oidExact
           
private  I_XmlBlasterAccess senderConnection
           
private  java.lang.String senderName
           
 
Constructor Summary
TestSubOneway(Global glob, java.lang.String testName, java.lang.String loginName)
          Constructs the TestSubOneway object.
 
Method Summary
static void main(java.lang.String[] args)
          Invoke: java org.xmlBlaster.test.qos.TestSubOneway
protected  void setUp()
          Connect to xmlBlaster and login
static junit.framework.Test suite()
          Method is used by TestRunner to load these tests
protected  void tearDown()
          cleaning up ....
 void testOneway()
          Subscribe oneway.
 
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

ME

private static java.lang.String ME

glob

private final Global glob

log

private static java.util.logging.Logger log

oidExact

private java.lang.String oidExact

senderConnection

private I_XmlBlasterAccess senderConnection

senderName

private java.lang.String senderName

msgInterceptor

private MsgInterceptor msgInterceptor
Constructor Detail

TestSubOneway

public TestSubOneway(Global glob,
                     java.lang.String testName,
                     java.lang.String loginName)
Constructs the TestSubOneway object.

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()
cleaning up .... erase() the previous message OID and logout

Overrides:
tearDown in class junit.framework.TestCase

testOneway

public void testOneway()
                throws java.lang.Exception
Subscribe oneway.

Throws:
java.lang.Exception

suite

public static junit.framework.Test suite()
Method is used by TestRunner to load these tests


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Invoke: java org.xmlBlaster.test.qos.TestSubOneway

Throws:
java.lang.Exception

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.