|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
org.objectweb.jtests.jms.framework.JMSTestCase (src)
org.objectweb.jtests.jms.framework.PTPTestCase (src)
org.objectweb.jtests.jms.conform.selector.SelectorTest
Test the message selector features of JMS
Field Summary |
Fields inherited from class org.objectweb.jtests.jms.framework.PTPTestCase (src) |
admin, ctx, receiver, receiverConnection, receiverQCF, receiverQueue, receiverSession, sender, senderConnection, senderQCF, senderQueue, senderSession |
Constructor Summary | |
SelectorTest(java.lang.String name)
|
Method Summary | |
static Test |
suite()
Method to use this class in a Test suite |
void |
testBetween()
Test the BETWEEN condition "age BETWEEN 15 and 19" is true for 17 and false for 20 |
void |
testEquals()
Test the "=" condition in message selector "weight > 2500"
|
void |
testGreaterThan()
Test the ">" condition in message selector "weight > 2500"
|
void |
testIn()
Test the IN condition "Country IN ('UK', 'US', 'France')" is true for 'UK' and false for 'Peru' |
void |
testLike_1()
Test the LIKE condition with '%' in the pattern "phone LIKE '12%3'" is true for '12993' and false for '1234' |
void |
testLike_2()
Test the LIKE condition with '_' in the pattern "word LIKE 'l_se'" is true for 'lose' and false for 'loose' |
void |
testLikeEscape()
Test the LIKE ... |
void |
testNull()
Test the NULL value in message selector
"prop IS NULL"
|
void |
testSelectorExampleFromSpecs()
Test the message selector using the filter example provided by the JMS specifications "JMSType = 'car' AND color = 'blue' AND weight > 2500"
|
Methods inherited from class org.objectweb.jtests.jms.framework.PTPTestCase (src) |
setUp, tearDown |
Methods inherited from class org.objectweb.jtests.jms.framework.JMSTestCase (src) |
fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SelectorTest(java.lang.String name)
Method Detail |
public void testSelectorExampleFromSpecs()
"JMSType = 'car' AND color = 'blue' AND weight > 2500"
public void testGreaterThan()
"weight > 2500"
public void testEquals()
"weight > 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 Test suite()
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |