xmlBlaster 2.2.0 API

org.xmlBlaster.test.authentication
Class TestSessionCb

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

public class TestSessionCb
extends junit.framework.TestCase

This client does test callbacks for two sessions and dead letters.

Test does not work with SOCKET protocol as here we use the same socket for callback and we can't simulate a lost callback

Invoke examples:

    java junit.textui.TestRunner org.xmlBlaster.test.authentication.TestSessionCb
    java junit.swingui.TestRunner org.xmlBlaster.test.authentication.TestSessionCb
 


Field Summary
private  java.lang.String assertInUpdate
           
private  I_XmlBlasterAccess con1
           
private  I_XmlBlasterAccess con2
           
private  int deadMessageCounter
           
private  Global glob
           
private static java.util.logging.Logger log
           
private  java.lang.String oid
           
 
Constructor Summary
TestSessionCb(Global glob, java.lang.String testName)
          Constructs the TestSessionCb object.
 
Method Summary
static void main(java.lang.String[] args)
          Invoke:
protected  void setUp()
           
static junit.framework.Test suite()
          Method is used by TestRunner to load these tests
protected  void tearDown()
           
 void testSessionCb()
           
 
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

con1

private I_XmlBlasterAccess con1

con2

private I_XmlBlasterAccess con2

assertInUpdate

private java.lang.String assertInUpdate

oid

private java.lang.String oid

deadMessageCounter

private int deadMessageCounter
Constructor Detail

TestSessionCb

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

Method Detail

setUp

protected void setUp()
Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

testSessionCb

public void testSessionCb()

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)
Invoke:
   java org.xmlBlaster.test.authentication.TestSessionCb
   java -Djava.compiler= junit.textui.TestRunner org.xmlBlaster.test.authentication.TestSessionCb
 


xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.