|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--org.exolab.jmscts.core.JMSTestCase
|
+--org.exolab.jmscts.core.AbstractConnectionFactoryTestCase
|
+--org.exolab.jmscts.core.AbstractConnectionTestCase
|
+--org.exolab.jmscts.core.AbstractSessionTestCase
|
+--org.exolab.jmscts.core.AbstractMessageTestCase
|
+--org.exolab.jmscts.core.AbstractSendReceiveTestCase
|
+--org.exolab.jmscts.test.selector.AbstractSelectorTestCase
|
+--org.exolab.jmscts.test.selector.StringTest
This class tests selectors containing string literals and objects
AbstractSelectorTestCase| Constructor Summary | |
StringTest(java.lang.String name)
Create an instance of this class for a specific test case |
|
| Method Summary | |
static junit.framework.Test |
suite()
Sets up the test suite |
void |
testCaseComparison1()
Verifies that string literals are case sensitive, using the selector 'abc' = 'ABC'. |
void |
testCaseComparison2()
Verifies that string literals are case sensitive, using the selector 'abc' <> 'ABC'. |
void |
testCaseComparison3()
Verifies that string literals are case sensitive when compared with string properties, using the selector Country = 'france', and the string property 'Country',
with value 'France'. |
void |
testCheckSingleQuotes1()
Verifies that string literals can contain embedded quotes, using the selector 'it''s' = 'it''s'. |
void |
testCheckSingleQuotes2()
Verifies that the quotes are preserved in string literals with embedded quotes, using the selector 'it''s' = 'its'. |
void |
testEquals()
Verifies that the selector 'abc' = 'abc' selects
all messages |
void |
testEqualsProperty()
Verifies that the selector Country = 'France' selects
all messages, when the string property 'Country' is set, with
value 'France' |
void |
testGreaterEquals1()
Verifies that the selector 'abc' >= 'abc' throws
InvalidSelectorException |
void |
testGreaterEquals2()
Verifies that the selector dummy >= 'abc' throws
InvalidSelectorException |
void |
testGreaterEquals3()
Verifies that the selector 'abc' >= dummy throws
InvalidSelectorException |
void |
testGreaterThan1()
Verifies that the selector 'abc' > 'abc' throws
InvalidSelectorException |
void |
testGreaterThan2()
Verifies that the selector dummy > 'abc' throws
InvalidSelectorException |
void |
testGreaterThan3()
Verifies that the selector 'abc' > dummy throws
InvalidSelectorException |
void |
testInvalid1()
Verifies that the selector 'abc' throws
InvalidSelectorException |
void |
testInvalid2()
Verifies that the selector 'abc' = 'abc throws
InvalidSelectorException |
void |
testInvalid3()
Verifies that the selector 'abc' = abc' throws
InvalidSelectorException |
void |
testInvalid4()
Verifies that the selector 'abc = 'abc' throws
InvalidSelectorException |
void |
testInvalid5()
Verifies that the selector 'abc'''' = 'abc' throws
InvalidSelectorException |
void |
testInvalid6()
Verifies that the selector "abc" = "abc" throws
InvalidSelectorException |
void |
testLessEquals1()
Verifies that the selector 'abc' <= 'abc' throws
InvalidSelectorException |
void |
testLessEquals2()
Verifies that the selector dummy <= 'abc' throws
InvalidSelectorException |
void |
testLessEquals3()
Verifies that the selector 'abc' <= dummy throws
InvalidSelectorException |
void |
testLessThan1()
Verifies that the selector 'abc' < 'abc' throws
InvalidSelectorException |
void |
testLessThan2()
Verifies that the selector dummy < 'abc' throws
InvalidSelectorException |
void |
testLessThan3()
Verifies that the selector 'abc' < dummy throws
InvalidSelectorException |
| Methods inherited from class org.exolab.jmscts.test.selector.AbstractSelectorTestCase |
checkInvalidSelector, checkSelector, checkSelector, getDestinations, getMessagePopulator |
| Methods inherited from class org.exolab.jmscts.core.AbstractSendReceiveTestCase |
close, close, close, close, createReceiver, createReceiver, createReceivers, createReceivers, createSender, createSender, createSenders, createSenders, getDeliveryTypes, getDestination, getDurableOnly, receive, receive, receive, receive, receive, receive, recreate, send, send, send, send, send, send, send, send, sendReceive, sendReceive, setDestinations |
| Methods inherited from class org.exolab.jmscts.core.AbstractMessageTestCase |
getMessageTypes, shouldCreateMessage, startConnection |
| Methods inherited from class org.exolab.jmscts.core.AbstractSessionTestCase |
getAckTypes |
| Methods inherited from class org.exolab.jmscts.core.AbstractConnectionTestCase |
setClientID |
| Methods inherited from class org.exolab.jmscts.core.AbstractConnectionFactoryTestCase |
getConnectionFactoryTypes |
| Methods inherited from class org.exolab.jmscts.core.JMSTestCase |
getContext, getRequirements, setContext, share |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 |
| Methods inherited from interface org.exolab.jmscts.core.MessageTestCase |
getMessageTypes, shouldCreateMessage, startConnection |
| Methods inherited from interface org.exolab.jmscts.core.SessionTestCase |
getAckTypes |
| Methods inherited from interface org.exolab.jmscts.core.ConnectionTestCase |
setClientID |
| Methods inherited from interface org.exolab.jmscts.core.ConnectionFactoryTestCase |
getConnectionFactoryTypes |
| Methods inherited from interface org.exolab.jmscts.core.JMSTest |
getContext, setContext, share |
| Methods inherited from interface junit.framework.Test |
countTestCases, run |
| Constructor Detail |
public StringTest(java.lang.String name)
name - the name of test case| Method Detail |
public static junit.framework.Test suite()
JMSTestRunner
public void testEquals()
throws java.lang.Exception
'abc' = 'abc' selects
all messagesjava.lang.Exception - for any error
public void testEqualsProperty()
throws java.lang.Exception
Country = 'France' selects
all messages, when the string property 'Country' is set, with
value 'France'java.lang.Exception - for any error
public void testCaseComparison1()
throws java.lang.Exception
'abc' = 'ABC'. This shouldn't select any messages.java.lang.Exception - for any error
public void testCaseComparison2()
throws java.lang.Exception
'abc' <> 'ABC'. This should select all messages.java.lang.Exception - for any error
public void testCaseComparison3()
throws java.lang.Exception
Country = 'france', and the string property 'Country',
with value 'France'. This should select no messages.java.lang.Exception - for any error
public void testCheckSingleQuotes1()
throws java.lang.Exception
'it''s' = 'it''s'. This should select
all messagesjava.lang.Exception - for any error
public void testCheckSingleQuotes2()
throws java.lang.Exception
'it''s' = 'its'.
This should select no messagesjava.lang.Exception - for any error
public void testLessThan1()
throws java.lang.Exception
'abc' < 'abc' throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testLessThan2()
throws java.lang.Exception
dummy < 'abc' throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testLessThan3()
throws java.lang.Exception
'abc' < dummy throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testGreaterThan1()
throws java.lang.Exception
'abc' > 'abc' throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testGreaterThan2()
throws java.lang.Exception
dummy > 'abc' throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testGreaterThan3()
throws java.lang.Exception
'abc' > dummy throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testLessEquals1()
throws java.lang.Exception
'abc' <= 'abc' throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testLessEquals2()
throws java.lang.Exception
dummy <= 'abc' throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testLessEquals3()
throws java.lang.Exception
'abc' <= dummy throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testGreaterEquals1()
throws java.lang.Exception
'abc' >= 'abc' throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testGreaterEquals2()
throws java.lang.Exception
dummy >= 'abc' throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testGreaterEquals3()
throws java.lang.Exception
'abc' >= dummy throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testInvalid1()
throws java.lang.Exception
'abc' throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testInvalid2()
throws java.lang.Exception
'abc' = 'abc throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testInvalid3()
throws java.lang.Exception
'abc' = abc' throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testInvalid4()
throws java.lang.Exception
'abc = 'abc' throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testInvalid5()
throws java.lang.Exception
'abc'''' = 'abc' throws
InvalidSelectorExceptionjava.lang.Exception - for any error
public void testInvalid6()
throws java.lang.Exception
"abc" = "abc" throws
InvalidSelectorExceptionjava.lang.Exception - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||