Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.presumo.jms.client
Class ClientTests  view ClientTests download ClientTests.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.presumo.jms.client.ClientTests
All Implemented Interfaces:
junit.framework.Test

public class ClientTests
extends junit.framework.TestCase

Unit tests for the client. Should test IntraJVM traffic, so consequently the Router will get instantiate to route the messages between the publisher and subscriber in the same JVM.


Field Summary
private static boolean VERBOSE
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ClientTests(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
private static void sleepRandom()
           
static junit.framework.Test suite()
           
 void testAutoAcknowledge()
           
 void testClientAcknowledge()
           
 void testDupsOkAcknowledge()
           
private  void testSimplePubSub(int ackMode)
           
 void testSimplePubSubMultiple()
           
private static void verbose(java.lang.String s)
           
 
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

VERBOSE

private static final boolean VERBOSE
See Also:
Constant Field Values
Constructor Detail

ClientTests

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

suite

public static junit.framework.Test suite()

testAutoAcknowledge

public void testAutoAcknowledge()
                         throws javax.jms.JMSException

testDupsOkAcknowledge

public void testDupsOkAcknowledge()
                           throws javax.jms.JMSException

testClientAcknowledge

public void testClientAcknowledge()
                           throws javax.jms.JMSException

testSimplePubSubMultiple

public void testSimplePubSubMultiple()
                              throws javax.jms.JMSException

testSimplePubSub

private void testSimplePubSub(int ackMode)
                       throws javax.jms.JMSException

verbose

private static final void verbose(java.lang.String s)

sleepRandom

private static final void sleepRandom()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception