org.apache.commons.beanutils.converters
Class FloatConverterTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.beanutils.converters.NumberConverterTestBase
              extended by org.apache.commons.beanutils.converters.FloatConverterTestCase
All Implemented Interfaces:
junit.framework.Test

public class FloatConverterTestCase
extends NumberConverterTestBase

Test Case for the FloatConverter class.

Version:
$Revision: 471348 $ $Date: 2006-11-04 21:59:26 -0500 (Sat, 04 Nov 2006) $
Author:
Rodney Waldhoff

Field Summary
private  Converter converter
           
 
Fields inherited from class org.apache.commons.beanutils.converters.NumberConverterTestBase
numbers
 
Constructor Summary
FloatConverterTestCase(String name)
           
 
Method Summary
protected  Class getExpectedType()
           
protected  NumberConverter makeConverter()
           
protected  NumberConverter makeConverter(Object defaultValue)
           
 void setUp()
           
static junit.framework.TestSuite suite()
           
 void tearDown()
           
 void testInvalidAmount()
          Test Invalid Amounts (too big/small)
 void testSimpleConversion()
           
 
Methods inherited from class org.apache.commons.beanutils.converters.NumberConverterTestBase
testBooleanToNumberDefault, testCalendarToNumber, testConvertNull, testConvertNumber, testDateToNumber, testInvalidDefault, testInvalidException, testInvalidType, testNumberToStringDefault, testNumberToStringLocale, testNumberToStringPattern, testOtherToStringDefault, testStringArrayToInteger, testStringToNumberDefault, testStringToNumberLocale, testStringToNumberPattern
 
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
 

Field Detail

converter

private Converter converter
Constructor Detail

FloatConverterTestCase

public FloatConverterTestCase(String name)
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

suite

public static junit.framework.TestSuite suite()

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

makeConverter

protected NumberConverter makeConverter()
Specified by:
makeConverter in class NumberConverterTestBase

makeConverter

protected NumberConverter makeConverter(Object defaultValue)
Specified by:
makeConverter in class NumberConverterTestBase

getExpectedType

protected Class getExpectedType()
Specified by:
getExpectedType in class NumberConverterTestBase

testSimpleConversion

public void testSimpleConversion()
                          throws Exception
Throws:
Exception

testInvalidAmount

public void testInvalidAmount()
Test Invalid Amounts (too big/small)



Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.