org.jboss.test.jmx.compliance.query
Class QueryTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.test.jmx.compliance.query.QueryTestCase
All Implemented Interfaces:
junit.framework.Test

public class QueryTestCase
extends junit.framework.TestCase

Query unit tests

Author:
Adrian Brock.

Nested Class Summary
 class QueryTestCase.QueryThread
           
 
Constructor Summary
QueryTestCase(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 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryTestCase

public QueryTestCase(String s)
Construct the test

Method Detail

testBoolean

public void testBoolean()
                 throws Exception
Test a boolean

Throws:
Exception

testDouble

public void testDouble()
                throws Exception
Test a double

Throws:
Exception

testDoubleObject

public void testDoubleObject()
                      throws Exception
Test a Double

Throws:
Exception

testFloat

public void testFloat()
               throws Exception
Test a float

Throws:
Exception

testFloatObject

public void testFloatObject()
                     throws Exception
Test a Float

Throws:
Exception

testInteger

public void testInteger()
                 throws Exception
Test a int

Throws:
Exception

testIntegerObject

public void testIntegerObject()
                       throws Exception
Test a Integer

Throws:
Exception

testLong

public void testLong()
              throws Exception
Test a long

Throws:
Exception

testLongObject

public void testLongObject()
                    throws Exception
Test a Long

Throws:
Exception

testString

public void testString()
                throws Exception
Test a String

Throws:
Exception

testAndTrueBoth

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

Throws:
Exception

testAndFalseFirst

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

Throws:
Exception

testAndFalseSecond

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

Throws:
Exception

testAndFalseBoth

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

Throws:
Exception

testOrTrueBoth

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

Throws:
Exception

testOrFalseFirst

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

Throws:
Exception

testOrFalseSecond

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

Throws:
Exception

testOrFalseBoth

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

Throws:
Exception

testNot

public void testNot()
             throws Exception
Test not

Throws:
Exception

testNotNot

public void testNotNot()
                throws Exception
Test not not

Throws:
Exception

testClassAttribute

public void testClassAttribute()
                        throws Exception
Test class attribute

Throws:
Exception

testSimpleObjectName

public void testSimpleObjectName()
                          throws Exception
Test simple object name

Throws:
Exception

testDomainPatternObjectName

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

Throws:
Exception

testPropertyPatternObjectName

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

Throws:
Exception

testMultiplePropertyPatternObjectName

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

Throws:
Exception

testInvalidNamePassedToObjectName

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

Throws:
Exception

testAnySubstring

public void testAnySubstring()
                      throws Exception
Test any substring

Throws:
Exception

testFinalSubstring

public void testFinalSubstring()
                        throws Exception
Test final substring

Throws:
Exception

testInitialSubstring

public void testInitialSubstring()
                          throws Exception
Test initial substring

Throws:
Exception

testMatchAsteriskBeginning

public void testMatchAsteriskBeginning()
                                throws Exception
Test match asterisk beginning

Throws:
Exception

testMatchAsteriskEnd

public void testMatchAsteriskEnd()
                          throws Exception
Test match asterisk end

Throws:
Exception

testMatchAsteriskBeginningAndEnd

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

Throws:
Exception

testMatchAsteriskEmbedded

public void testMatchAsteriskEmbedded()
                               throws Exception
Test match asterisk embedded

Throws:
Exception

testMatchQuestionBeginning

public void testMatchQuestionBeginning()
                                throws Exception
Test match question beginning

Throws:
Exception

testMatchQuestionEnd

public void testMatchQuestionEnd()
                          throws Exception
Test match question end

Throws:
Exception

testMatchQuestionBeginningEnd

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

Throws:
Exception

testMatchQuestionEmbedded

public void testMatchQuestionEmbedded()
                               throws Exception
Test match question embedded

Throws:
Exception

testMatchCharacterSet

public void testMatchCharacterSet()
                           throws Exception
Test match character set

Throws:
Exception

testMatchCharacterRange

public void testMatchCharacterRange()
                             throws Exception
Test match character range

Throws:
Exception

testEscapingQuestion

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

Throws:
Exception

testEscapingAsterisk

public void testEscapingAsterisk()
                          throws Exception
Test match escaping asterisk

Throws:
Exception

testEscapingOpenBracket

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

Throws:
Exception

testMinusInCharacterSet

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

Throws:
Exception

testThreading

public void testThreading()
                   throws 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:
Exception

testPathological

public void testPathological()
                      throws Exception
Test pathological

Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.