org.apache.tapestry.valid
Class TestNumberValidator

java.lang.Object
  extended by BaseComponentTestCase
      extended by org.apache.tapestry.junit.TapestryTestCase
          extended by org.apache.tapestry.valid.BaseValidatorTestCase
              extended by org.apache.tapestry.valid.TestNumberValidator

public class TestNumberValidator
extends BaseValidatorTestCase

Test the NumberValidator.

Since:
1.0.8
Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class org.apache.tapestry.junit.TapestryTestCase
IS_JDK13
 
Constructor Summary
TestNumberValidator()
           
 
Method Summary
 void reset()
           
 void testAdaptorTypes()
           
 void testBigDecimal()
           
 void testBigDecimalCompare()
           
 void testBigInteger()
           
 void testBigIntegerCompare()
           
 void testByte()
           
 void testByteCompare()
           
 void testDouble()
           
 void testDoubleCompare()
           
 void testFloat()
           
 void testFloatCompare()
           
 void testInRange()
           
 void testInteger()
           
 void testIntegerCompare()
           
 void testInvalidFormat()
           
 void testLong()
           
 void testLongCompare()
           
 void testOverMaximum()
           
 void testOverrideInvalidNumericFormatMessage()
           
 void testOverrideNumberTooLargeMessage()
           
 void testOverrideNumberTooSmallMessage()
           
 void testShort()
           
 void testShortCompare()
           
 void testUnderMinimum()
           
 
Methods inherited from class org.apache.tapestry.valid.BaseValidatorTestCase
newField, newField, newField, newField, newField, newPage
 
Methods inherited from class org.apache.tapestry.junit.TapestryTestCase
checkException, checkList, checkList, checkProperty, createValueConverter, getSpecificationResourceLocation, newBindingSource, newComponent, parseApp, parseComponent, parseLib, parsePage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestNumberValidator

public TestNumberValidator()
Method Detail

reset

public void reset()

testShort

public void testShort()
               throws ValidatorException
Throws:
ValidatorException

testInteger

public void testInteger()
                 throws ValidatorException
Throws:
ValidatorException

testByte

public void testByte()
              throws ValidatorException
Throws:
ValidatorException

testFloat

public void testFloat()
               throws ValidatorException
Throws:
ValidatorException

testDouble

public void testDouble()
                throws ValidatorException
Throws:
ValidatorException

testLong

public void testLong()
              throws ValidatorException
Throws:
ValidatorException

testInRange

public void testInRange()
                 throws ValidatorException
Throws:
ValidatorException

testUnderMinimum

public void testUnderMinimum()

testOverrideNumberTooSmallMessage

public void testOverrideNumberTooSmallMessage()

testOverMaximum

public void testOverMaximum()

testOverrideNumberTooLargeMessage

public void testOverrideNumberTooLargeMessage()

testInvalidFormat

public void testInvalidFormat()

testOverrideInvalidNumericFormatMessage

public void testOverrideInvalidNumericFormatMessage()

testBigInteger

public void testBigInteger()
                    throws ValidatorException
Throws:
ValidatorException

testBigDecimal

public void testBigDecimal()
                    throws ValidatorException
Throws:
ValidatorException

testAdaptorTypes

public void testAdaptorTypes()
                      throws Exception
Throws:
Exception
Since:
3.0 *

testByteCompare

public void testByteCompare()

testShortCompare

public void testShortCompare()

testIntegerCompare

public void testIntegerCompare()

testLongCompare

public void testLongCompare()

testBigIntegerCompare

public void testBigIntegerCompare()

testFloatCompare

public void testFloatCompare()

testDoubleCompare

public void testDoubleCompare()

testBigDecimalCompare

public void testBigDecimalCompare()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.