org.objectweb.jtests.jms.conform.selector
Class SelectorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.objectweb.jtests.jms.framework.JMSTestCase
              extended by org.objectweb.jtests.jms.framework.PTPTestCase
                  extended by org.objectweb.jtests.jms.conform.selector.SelectorTest
All Implemented Interfaces:
junit.framework.Test

public class SelectorTest
extends PTPTestCase

Test the message selector features of JMS

Version:
$Id: SelectorTest.java,v 1.3 2007/10/02 14:59:35 csuconic Exp $
Author:
Jeff Mesnil (jmesnil@inrialpes.fr)

Field Summary
 
Fields inherited from class org.objectweb.jtests.jms.framework.PTPTestCase
admin, ctx, receiver, receiverConnection, receiverQCF, receiverQueue, receiverSession, sender, senderConnection, senderQCF, senderQueue, senderSession
 
Constructor Summary
SelectorTest(java.lang.String name)
           
 
Method Summary
static junit.framework.Test suite()
          Method to use this class in a Test suite
 void testBetween()
          Test the BETWEEN condition in message selector.
 void testEmptyStringAsSelector()
          Test that an empty string as a message selector indicates that there is no message selector for the message consumer.
 void testEquals()
          Test the "=" condition in message selector.
 void testGreaterThan()
          Test the ">" condition in message selector.
 void testIdentifierConversion()
          Test that conversions that apply to the get methods for properties do not apply when a property is used in a message selector expression.
 void testIn()
          Test the IN condition in message selector.
 void testJMSDeliveryModeInSelector()
          Test that the JMS property JMSDeliveryMode is treated as having the values 'PERSISTENT' or 'NON_PERSISTENT' when used in a message selector (chapter 3.8.1.3).
 void testLike_1()
          Test the LIKE condition with '%' in the pattern.
 void testLike_2()
          Test the LIKE condition with '_' in the pattern.
 void testLikeEscape()
          Test the LIKE ...
 void testNotEquals()
          Test the "<>" (not equal) condition in message selector.
 void testNull()
          Test the NULL value in message selector.
 void testSelectorExampleFromSpecs()
          Test the message selector using the filter example provided by the JMS specifications.
 void testStringLiterals()
          Tats that String literals are well handled by the message selector.
 
Methods inherited from class org.objectweb.jtests.jms.framework.PTPTestCase
setUp, tearDown
 
Methods inherited from class org.objectweb.jtests.jms.framework.JMSTestCase
fail, getProviderProperties
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectorTest

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

testEmptyStringAsSelector

public void testEmptyStringAsSelector()
Test that an empty string as a message selector indicates that there is no message selector for the message consumer.


testStringLiterals

public void testStringLiterals()
Tats that String literals are well handled by the message selector.


testJMSDeliveryModeInSelector

public void testJMSDeliveryModeInSelector()
Test that the JMS property JMSDeliveryMode is treated as having the values 'PERSISTENT' or 'NON_PERSISTENT' when used in a message selector (chapter 3.8.1.3).


testIdentifierConversion

public void testIdentifierConversion()
Test that conversions that apply to the get methods for properties do not apply when a property is used in a message selector expression. Based on the example of chapter 3.8.1.1 about identifiers.


testSelectorExampleFromSpecs

public void testSelectorExampleFromSpecs()
Test the message selector using the filter example provided by the JMS specifications.


testGreaterThan

public void testGreaterThan()
Test the ">" condition in message selector.


testEquals

public void testEquals()
Test the "=" condition in message selector.


testNotEquals

public void testNotEquals()
Test the "<>" (not equal) condition in message selector.


testBetween

public void testBetween()
Test the BETWEEN condition in message selector.


testIn

public void testIn()
Test the IN condition in message selector.


testLikeEscape

public void testLikeEscape()
Test the LIKE ... ESCAPE condition in message selector


testLike_2

public void testLike_2()
Test the LIKE condition with '_' in the pattern.


testLike_1

public void testLike_1()
Test the LIKE condition with '%' in the pattern.


testNull

public void testNull()
Test the NULL value in message selector.


suite

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



Copyright © 2010 JBoss, A division of Red Hat. All Rights Reserved.