org.apache.commons.messenger
Class TestMessenger

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.messenger.TestMessenger
All Implemented Interfaces:
junit.framework.Test

public class TestMessenger
extends junit.framework.TestCase

Test harness for Messenger

Version:
$Revision: 155459 $
Author:
James Strachan

Field Summary
protected  List failures
           
protected  String queueMessageText
           
protected  String queueName
           
protected  boolean receivedQueueMessage
           
protected  boolean receivedTopicMessage
           
protected  String topicMessageText
           
protected  String topicName
           
protected static boolean verbose
           
protected  long waitTime
           
 
Constructor Summary
TestMessenger(String testName)
           
 
Method Summary
protected  void flushDestination(org.apache.commons.messenger.Messenger messenger, javax.jms.Destination destination)
           
protected  void log(String text)
           
static void main(String[] args)
           
protected  void receiveQueueMessage()
           
protected  void receiveTopicMessage()
           
protected  void sendReply(org.apache.commons.messenger.Messenger messenger, javax.jms.Message message)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
 void testRpc()
           
 void testSendQueue()
           
 void testSendTopic()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

protected static boolean verbose

failures

protected List failures

topicName

protected String topicName

queueName

protected String queueName

topicMessageText

protected String topicMessageText

queueMessageText

protected String queueMessageText

waitTime

protected long waitTime

receivedQueueMessage

protected volatile boolean receivedQueueMessage

receivedTopicMessage

protected volatile boolean receivedTopicMessage
Constructor Detail

TestMessenger

public TestMessenger(String testName)
Method Detail

suite

public static junit.framework.Test suite()

main

public static void main(String[] args)

testSendTopic

public void testSendTopic()
                   throws Exception
Throws:
Exception

testSendQueue

public void testSendQueue()
                   throws Exception
Throws:
Exception

testRpc

public void testRpc()
             throws Exception
Throws:
Exception

sendReply

protected void sendReply(org.apache.commons.messenger.Messenger messenger,
                         javax.jms.Message message)

setUp

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

flushDestination

protected void flushDestination(org.apache.commons.messenger.Messenger messenger,
                                javax.jms.Destination destination)
                         throws Exception
Throws:
Exception

receiveTopicMessage

protected void receiveTopicMessage()
                            throws Exception
Throws:
Exception

receiveQueueMessage

protected void receiveQueueMessage()
                            throws Exception
Throws:
Exception

log

protected void log(String text)


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.