org.apache.commons.beanutils.locale.converters
Class FloatLocaleConverterTestCase

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

public class FloatLocaleConverterTestCase
extends BaseLocaleConverterTestCase

Test Case for the FloatLocaleConverter class.

Version:
$Revision: 800988 $ $Date: 2009-08-04 22:32:47 +0100 (Tue, 04 Aug 2009) $
Author:
Niall Pemberton

Field Summary
 
Fields inherited from class org.apache.commons.beanutils.locale.converters.BaseLocaleConverterTestCase
converter, defaultDecimalPattern, defaultDecimalValue, defaultIntegerPattern, defaultIntegerValue, defaultLocale, defaultValue, expectedDecimalValue, expectedIntegerValue, expectedValue, localizedDecimalPattern, localizedDecimalValue, localizedIntegerPattern, localizedIntegerValue, localizedLocale, origLocale, result
 
Constructor Summary
FloatLocaleConverterTestCase(String name)
           
 
Method Summary
 void setUp()
          Set up instance variables required by this test case.
 void tearDown()
          Tear down instance variables required by this test case.
 void testConstructor_2()
          Test Converter() constructor Uses the default locale, no default value
 void testConstructor_3()
          Test Converter(locPattern) constructor Uses the default locale, no default value
 void testConstructor_4()
          Test Converter(Locale) constructor
 void testConstructor_5()
          Test Converter(Locale, locPattern) constructor
 void testConstructor_6()
          Test Converter(Locale, pattern) constructor
 void testConstructor_7()
          Test Converter(Locale, pattern, locPattern) constructor
 void testConstructor_8()
          Test Converter(defaultValue) constructor
 void testConstructor_9()
          Test Converter(defaultValue, locPattern) constructor
 void testConstructorMain()
          Test Converter(defaultValue, locale, pattern, localizedPattern) constructor
 void testFloatLimits()
          Test Float limits
 void testParseZero()
          Test parsing zero - see BEANUTILS-351
 
Methods inherited from class org.apache.commons.beanutils.locale.converters.BaseLocaleConverterTestCase
convertInvalid, convertInvalid, convertNull, convertNull, convertValueNoPattern, convertValueNoPattern, convertValueToType, convertValueToType, convertValueWithPattern, convertValueWithPattern, testNothing
 
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

FloatLocaleConverterTestCase

public FloatLocaleConverterTestCase(String name)
Method Detail

setUp

public void setUp()
           throws Exception
Set up instance variables required by this test case.

Overrides:
setUp in class BaseLocaleConverterTestCase
Throws:
Exception

tearDown

public void tearDown()
Tear down instance variables required by this test case.

Overrides:
tearDown in class BaseLocaleConverterTestCase

testConstructorMain

public void testConstructorMain()
Test Converter(defaultValue, locale, pattern, localizedPattern) constructor


testConstructor_2

public void testConstructor_2()
Test Converter() constructor Uses the default locale, no default value


testConstructor_3

public void testConstructor_3()
Test Converter(locPattern) constructor Uses the default locale, no default value


testConstructor_4

public void testConstructor_4()
Test Converter(Locale) constructor


testConstructor_5

public void testConstructor_5()
Test Converter(Locale, locPattern) constructor


testConstructor_6

public void testConstructor_6()
Test Converter(Locale, pattern) constructor


testConstructor_7

public void testConstructor_7()
Test Converter(Locale, pattern, locPattern) constructor


testConstructor_8

public void testConstructor_8()
Test Converter(defaultValue) constructor


testConstructor_9

public void testConstructor_9()
Test Converter(defaultValue, locPattern) constructor


testFloatLimits

public void testFloatLimits()
Test Float limits


testParseZero

public void testParseZero()
Test parsing zero - see BEANUTILS-351



Copyright © 2000-2010 The Apache Software Foundation. All Rights Reserved.