|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.objectweb.jtests.jms.framework.JMSTestCase
org.objectweb.jtests.jms.framework.PTPTestCase
org.objectweb.jtests.jms.conform.selector.SelectorTest
public class SelectorTest
Test the message selector features of JMS
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 |
---|
public SelectorTest(java.lang.String name)
Method Detail |
---|
public void testEmptyStringAsSelector()
public void testStringLiterals()
"string = 'literal''s;"
is true
for "literal's" and false
for "literal"
public void testJMSDeliveryModeInSelector()
JMSDeliveryMode
is treated as having the values 'PERSISTENT'
or 'NON_PERSISTENT'
when used in a message selector (chapter 3.8.1.3).
public void testIdentifierConversion()
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.
public void testSelectorExampleFromSpecs()
"JMSType = 'car' AND color = 'blue' AND weight > 2500"
public void testGreaterThan()
"weight > 2500"
is true
for 3000 and false
for 1000
public void testEquals()
"weight > 2500"
is true
for 2500 and false
for 1000
public void testNotEquals()
"weight <> 2500"
is true
for 1000 and false
for 2500
public void testBetween()
true
for 17 and false
for 20
public void testIn()
true
for 'UK' and false
for 'Peru'
public void testLikeEscape()
true
for '_foo' and false
for 'bar'
public void testLike_2()
true
for 'lose' and false
for 'loose'
public void testLike_1()
true
for '12993' and false
for '1234'
public void testNull()
NULL
value in message selector.
"prop IS NULL"
public static junit.framework.Test suite()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |