org.apache.jsieve.comparators
Class AsciiNumericTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.jsieve.comparators.AsciiNumericTest
All Implemented Interfaces:
junit.framework.Test

public class AsciiNumericTest
extends junit.framework.TestCase


Constructor Summary
AsciiNumericTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testBasicNumbericEquality()
           
 void testEqualityShouldIgnoreLeadingZeros()
           
 void testEqualityShouldIgnoreTrailingCharacters()
           
 void testMatchNotSupported()
           
 void testStingsThatDoNotStartWithADigitRepresentPositiveInfinityWhenUsedInEquality()
           
 void testSubstringIsNotSupported()
           
 void testVerificationFailsWhenAsciiNumericIsNotRequired()
           
 void testVerificationPassesWhenAsciiNumericIsRequired()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsciiNumericTest

public AsciiNumericTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testVerificationFailsWhenAsciiNumericIsNotRequired

public void testVerificationFailsWhenAsciiNumericIsNotRequired()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testVerificationPassesWhenAsciiNumericIsRequired

public void testVerificationPassesWhenAsciiNumericIsRequired()
                                                      throws java.lang.Exception
Throws:
java.lang.Exception

testBasicNumbericEquality

public void testBasicNumbericEquality()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testEqualityShouldIgnoreTrailingCharacters

public void testEqualityShouldIgnoreTrailingCharacters()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testEqualityShouldIgnoreLeadingZeros

public void testEqualityShouldIgnoreLeadingZeros()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testStingsThatDoNotStartWithADigitRepresentPositiveInfinityWhenUsedInEquality

public void testStingsThatDoNotStartWithADigitRepresentPositiveInfinityWhenUsedInEquality()
                                                                                   throws java.lang.Exception
Throws:
java.lang.Exception

testSubstringIsNotSupported

public void testSubstringIsNotSupported()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testMatchNotSupported

public void testMatchNotSupported()
                           throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.