xmlBlaster 2.2.0 API

org.xmlBlaster.test.distributor
Class TestConsumableQueue

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

public class TestConsumableQueue
extends junit.framework.TestCase

Test JmsSubscribe.

All methods starting with 'test' and without arguments are invoked automatically

Invoke: java -Djava.compiler= junit.swingui.TestRunner -noloading org.xmlBlaster.test.distributor.TestConsumableQueue

Author:
Michele Laghi
See Also:
ConnectQosData, the jms requirement

Field Summary
private  Global global
           
(package private) static java.util.ArrayList<java.lang.String> responses
           
private static long WAIT_DELAY
           
 
Constructor Summary
TestConsumableQueue(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           java org.xmlBlaster.test.classtest.TestConsumableQueue
 void prepare(java.lang.String[] args)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testPubSub()
          A publisher publishes and then one subscriber subscribe The subscriber should get the message.
 void testPubSubSub()
          A publisher publishes and then two subscribers log subscribe Only one of the subscribers should get the message.
 void testSubSubPub()
          Two subscribers log subscribe and then a publisher publishes Only one of the subscribers should get the message.
 
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

global

private Global global

responses

static java.util.ArrayList<java.lang.String> responses

WAIT_DELAY

private static long WAIT_DELAY
Constructor Detail

TestConsumableQueue

public TestConsumableQueue(java.lang.String name)
Method Detail

prepare

public void prepare(java.lang.String[] args)

setUp

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

tearDown

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

testSubSubPub

public void testSubSubPub()
Two subscribers log subscribe and then a publisher publishes Only one of the subscribers should get the message. This should test synchronous distribution


testPubSub

public void testPubSub()
A publisher publishes and then one subscriber subscribe The subscriber should get the message. This should test asynchronous distribution


testPubSubSub

public void testPubSubSub()
A publisher publishes and then two subscribers log subscribe Only one of the subscribers should get the message. This should test asynchronous distribution


main

public static void main(java.lang.String[] args)
  java org.xmlBlaster.test.classtest.TestConsumableQueue
 


xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.