test.compliance.query
Class QueryTestCase

java.lang.Object
  extended byTestCase
      extended bytest.compliance.query.QueryTestCase

public class QueryTestCase
extends TestCase

Query unit tests

See Also:
Serialized Form

Nested Class Summary
 class QueryTestCase.QueryThread (src)
           
 
Constructor Summary
QueryTestCase(java.lang.String s)
          Construct the test
 
Method Summary
 void testAndFalseBoth()
          Test and is false both parameters
 void testAndFalseFirst()
          Test and is false first parameter
 void testAndFalseSecond()
          Test and is false second parameter
 void testAndTrueBoth()
          Test and is true both
 void testAnySubstring()
          Test any substring
 void testBoolean()
          Test a boolean
 void testClassAttribute()
          Test class attribute
 void testDomainPatternObjectName()
          Test domain pattern object name
 void testDouble()
          Test a double
 void testDoubleObject()
          Test a Double
 void testEscapingAsterisk()
          Test match escaping asterisk
 void testEscapingOpenBracket()
          Test match escaping open bracket
 void testEscapingQuestion()
          Test match escaping question mark
 void testFinalSubstring()
          Test final substring
 void testFloat()
          Test a float
 void testFloatObject()
          Test a Float
 void testInitialSubstring()
          Test initial substring
 void testInteger()
          Test a int
 void testIntegerObject()
          Test a Integer
 void testInvalidNamePassedToObjectName()
          Test invalid name passed to ObjectName
 void testLong()
          Test a long
 void testLongObject()
          Test a Long
 void testMatchAsteriskBeginning()
          Test match asterisk beginning
 void testMatchAsteriskBeginningAndEnd()
          Test any match asterisk beginning and end
 void testMatchAsteriskEmbedded()
          Test match asterisk embedded
 void testMatchAsteriskEnd()
          Test match asterisk end
 void testMatchCharacterRange()
          Test match character range
 void testMatchCharacterSet()
          Test match character set
 void testMatchQuestionBeginning()
          Test match question beginning
 void testMatchQuestionBeginningEnd()
          Test match question beginning and end
 void testMatchQuestionEmbedded()
          Test match question embedded
 void testMatchQuestionEnd()
          Test match question end
 void testMinusInCharacterSet()
          Test match minus in character set
 void testMultiplePropertyPatternObjectName()
          Test multiple property pattern object name
 void testNot()
          Test not
 void testNotNot()
          Test not not
 void testOrFalseBoth()
          Test or is false both parameters
 void testOrFalseFirst()
          Test or is false first parameter
 void testOrFalseSecond()
          Test or is false second parameter
 void testOrTrueBoth()
          Test or is true both
 void testPathological()
          Test pathological
 void testPropertyPatternObjectName()
          Test property pattern object name
 void testSimpleObjectName()
          Test simple object name
 void testString()
          Test a String
 void testThreading()
          Test threading, tests that running the same query in multiple threads works.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryTestCase

public QueryTestCase(java.lang.String s)
Construct the test

Method Detail

testBoolean

public void testBoolean()
                 throws java.lang.Exception
Test a boolean

Throws:
java.lang.Exception

testDouble

public void testDouble()
                throws java.lang.Exception
Test a double

Throws:
java.lang.Exception

testDoubleObject

public void testDoubleObject()
                      throws java.lang.Exception
Test a Double

Throws:
java.lang.Exception

testFloat

public void testFloat()
               throws java.lang.Exception
Test a float

Throws:
java.lang.Exception

testFloatObject

public void testFloatObject()
                     throws java.lang.Exception
Test a Float

Throws:
java.lang.Exception

testInteger

public void testInteger()
                 throws java.lang.Exception
Test a int

Throws:
java.lang.Exception

testIntegerObject

public void testIntegerObject()
                       throws java.lang.Exception
Test a Integer

Throws:
java.lang.Exception

testLong

public void testLong()
              throws java.lang.Exception
Test a long

Throws:
java.lang.Exception

testLongObject

public void testLongObject()
                    throws java.lang.Exception
Test a Long

Throws:
java.lang.Exception

testString

public void testString()
                throws java.lang.Exception
Test a String

Throws:
java.lang.Exception

testAndTrueBoth

public void testAndTrueBoth()
                     throws java.lang.Exception
Test and is true both

Throws:
java.lang.Exception

testAndFalseFirst

public void testAndFalseFirst()
                       throws java.lang.Exception
Test and is false first parameter

Throws:
java.lang.Exception

testAndFalseSecond

public void testAndFalseSecond()
                        throws java.lang.Exception
Test and is false second parameter

Throws:
java.lang.Exception

testAndFalseBoth

public void testAndFalseBoth()
                      throws java.lang.Exception
Test and is false both parameters

Throws:
java.lang.Exception

testOrTrueBoth

public void testOrTrueBoth()
                    throws java.lang.Exception
Test or is true both

Throws:
java.lang.Exception

testOrFalseFirst

public void testOrFalseFirst()
                      throws java.lang.Exception
Test or is false first parameter

Throws:
java.lang.Exception

testOrFalseSecond

public void testOrFalseSecond()
                       throws java.lang.Exception
Test or is false second parameter

Throws:
java.lang.Exception

testOrFalseBoth

public void testOrFalseBoth()
                     throws java.lang.Exception
Test or is false both parameters

Throws:
java.lang.Exception

testNot

public void testNot()
             throws java.lang.Exception
Test not

Throws:
java.lang.Exception

testNotNot

public void testNotNot()
                throws java.lang.Exception
Test not not

Throws:
java.lang.Exception

testClassAttribute

public void testClassAttribute()
                        throws java.lang.Exception
Test class attribute

Throws:
java.lang.Exception

testSimpleObjectName

public void testSimpleObjectName()
                          throws java.lang.Exception
Test simple object name

Throws:
java.lang.Exception

testDomainPatternObjectName

public void testDomainPatternObjectName()
                                 throws java.lang.Exception
Test domain pattern object name

Throws:
java.lang.Exception

testPropertyPatternObjectName

public void testPropertyPatternObjectName()
                                   throws java.lang.Exception
Test property pattern object name

Throws:
java.lang.Exception

testMultiplePropertyPatternObjectName

public void testMultiplePropertyPatternObjectName()
                                           throws java.lang.Exception
Test multiple property pattern object name

Throws:
java.lang.Exception

testInvalidNamePassedToObjectName

public void testInvalidNamePassedToObjectName()
                                       throws java.lang.Exception
Test invalid name passed to ObjectName

Throws:
java.lang.Exception

testAnySubstring

public void testAnySubstring()
                      throws java.lang.Exception
Test any substring

Throws:
java.lang.Exception

testFinalSubstring

public void testFinalSubstring()
                        throws java.lang.Exception
Test final substring

Throws:
java.lang.Exception

testInitialSubstring

public void testInitialSubstring()
                          throws java.lang.Exception
Test initial substring

Throws:
java.lang.Exception

testMatchAsteriskBeginning

public void testMatchAsteriskBeginning()
                                throws java.lang.Exception
Test match asterisk beginning

Throws:
java.lang.Exception

testMatchAsteriskEnd

public void testMatchAsteriskEnd()
                          throws java.lang.Exception
Test match asterisk end

Throws:
java.lang.Exception

testMatchAsteriskBeginningAndEnd

public void testMatchAsteriskBeginningAndEnd()
                                      throws java.lang.Exception
Test any match asterisk beginning and end

Throws:
java.lang.Exception

testMatchAsteriskEmbedded

public void testMatchAsteriskEmbedded()
                               throws java.lang.Exception
Test match asterisk embedded

Throws:
java.lang.Exception

testMatchQuestionBeginning

public void testMatchQuestionBeginning()
                                throws java.lang.Exception
Test match question beginning

Throws:
java.lang.Exception

testMatchQuestionEnd

public void testMatchQuestionEnd()
                          throws java.lang.Exception
Test match question end

Throws:
java.lang.Exception

testMatchQuestionBeginningEnd

public void testMatchQuestionBeginningEnd()
                                   throws java.lang.Exception
Test match question beginning and end

Throws:
java.lang.Exception

testMatchQuestionEmbedded

public void testMatchQuestionEmbedded()
                               throws java.lang.Exception
Test match question embedded

Throws:
java.lang.Exception

testMatchCharacterSet

public void testMatchCharacterSet()
                           throws java.lang.Exception
Test match character set

Throws:
java.lang.Exception

testMatchCharacterRange

public void testMatchCharacterRange()
                             throws java.lang.Exception
Test match character range

Throws:
java.lang.Exception

testEscapingQuestion

public void testEscapingQuestion()
                          throws java.lang.Exception
Test match escaping question mark

Throws:
java.lang.Exception

testEscapingAsterisk

public void testEscapingAsterisk()
                          throws java.lang.Exception
Test match escaping asterisk

Throws:
java.lang.Exception

testEscapingOpenBracket

public void testEscapingOpenBracket()
                             throws java.lang.Exception
Test match escaping open bracket

Throws:
java.lang.Exception

testMinusInCharacterSet

public void testMinusInCharacterSet()
                             throws java.lang.Exception
Test match minus in character set

Throws:
java.lang.Exception

testThreading

public void testThreading()
                   throws java.lang.Exception
Test threading, tests that running the same query in multiple threads works. This test might not catch a threading problem on every run.

Throws:
java.lang.Exception

testPathological

public void testPathological()
                      throws java.lang.Exception
Test pathological

Throws:
java.lang.Exception