| org.apache.commons.beanutils.converters.NumberConverterTestBase
All known Subclasses: org.apache.commons.beanutils.converters.BigDecimalConverterTestCase, org.apache.commons.beanutils.converters.FloatConverterTestCase, org.apache.commons.beanutils.converters.ShortConverterTestCase, org.apache.commons.beanutils.converters.LongConverterTestCase, org.apache.commons.beanutils.converters.BigIntegerConverterTestCase, org.apache.commons.beanutils.converters.IntegerConverterTestCase, org.apache.commons.beanutils.converters.DoubleConverterTestCase, org.apache.commons.beanutils.converters.ByteConverterTestCase,
NumberConverterTestBase | abstract public class NumberConverterTestBase extends TestCase (Code) | | Abstract base for <Number>Converter classes.
author: Rodney Waldhoff version: $Revision: 541692 $ $Date: 2007-05-25 16:34:19 +0100 (Fri, 25 May 2007) $ |
NumberConverterTestBase | public NumberConverterTestBase(String name)(Code) | | |
getExpectedType | abstract protected Class getExpectedType()(Code) | | |
testBooleanToNumberDefault | public void testBooleanToNumberDefault()(Code) | | Convert Boolean --> Number (default conversion)
|
testCalendarToNumber | public void testCalendarToNumber()(Code) | | Convert Calendar --> Long
|
testConvertNull | public void testConvertNull()(Code) | | Assumes ConversionException in response to covert(getExpectedType(),null).
|
testConvertNumber | public void testConvertNumber()(Code) | | Assumes convert(getExpectedType(),Number) returns some non-null
instance of getExpectedType().
|
testDateToNumber | public void testDateToNumber()(Code) | | Convert Date --> Long
|
testInvalidDefault | public void testInvalidDefault()(Code) | | Convert Number --> String (using default and specified Locales)
|
testInvalidException | public void testInvalidException()(Code) | | Convert Number --> String (using default and specified Locales)
|
testInvalidType | public void testInvalidType()(Code) | | Test specifying an invalid type.
|
testNumberToStringDefault | public void testNumberToStringDefault()(Code) | | Convert Number --> String (default conversion)
|
testNumberToStringLocale | public void testNumberToStringLocale()(Code) | | Convert Number --> String (using default and specified Locales)
|
testNumberToStringPattern | public void testNumberToStringPattern()(Code) | | Convert Number --> String (using a Pattern, with default and specified Locales)
|
testOtherToStringDefault | public void testOtherToStringDefault()(Code) | | Convert Other --> String (default conversion)
|
testStringArrayToInteger | public void testStringArrayToInteger()(Code) | | Convert Array --> Number
|
testStringToNumberDefault | public void testStringToNumberDefault()(Code) | | Convert String --> Number (default conversion)
|
testStringToNumberLocale | public void testStringToNumberLocale()(Code) | | Convert String --> Number (using default and specified Locales)
|
testStringToNumberPattern | public void testStringToNumberPattern()(Code) | | Convert String --> Number (using a Pattern, with default and specified Locales)
|
|
|