Class QueueBrowserTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
All Implemented Interfaces:
junit.framework.Test

public class QueueBrowserTest extends PTPTestCase
Test the jakarta.jms.QueueBrowser features.
Version:
$Id: QueueBrowserTest.java,v 1.2 2007/06/19 23:32:35 csuconic Exp $
Author:
Jeff Mesnil (jmesnil@gmail.com)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected jakarta.jms.QueueBrowser
    The QueueBrowser of the receiver's session
    protected jakarta.jms.QueueBrowser
    The QueueBrowser of the sender's session

    Fields inherited from class org.objectweb.jtests.jms.framework.JMSTestCase

    admin, PROP_FILE_NAME, startServer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Create all administrated objects connections and sessions ready to use for tests.
    static junit.framework.Test
    Method to use this class in a Test suite
    void
    Close connections and delete administrated objects
    void
    Test that a QueueBrowser created with a message selector browses only the messages matching this selector.
    void
    Test the QueueBrowser of the sender.

    Methods inherited from class org.objectweb.jtests.jms.framework.JMSTestCase

    fail, getProviderProperties

    Methods inherited from class junit.framework.TestCase

    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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • receiverBrowser

      protected jakarta.jms.QueueBrowser receiverBrowser
      The QueueBrowser of the receiver's session
    • senderBrowser

      protected jakarta.jms.QueueBrowser senderBrowser
      The QueueBrowser of the sender's session
  • Constructor Details

    • QueueBrowserTest

      public QueueBrowserTest(String name)
  • Method Details

    • testSenderBrowser

      public void testSenderBrowser()
      Test the QueueBrowser of the sender.
    • testBrowserWithMessageSelector

      public void testBrowserWithMessageSelector()
      Test that a QueueBrowser created with a message selector browses only the messages matching this selector.
    • setUp

      public void setUp() throws Exception
      Description copied from class: PTPTestCase
      Create all administrated objects connections and sessions ready to use for tests.
      Start connections.
      Overrides:
      setUp in class PTPTestCase
      Throws:
      Exception
    • tearDown

      public void tearDown() throws Exception
      Description copied from class: PTPTestCase
      Close connections and delete administrated objects
      Overrides:
      tearDown in class PTPTestCase
      Throws:
      Exception
    • suite

      public static junit.framework.Test suite()
      Method to use this class in a Test suite