org.apache.commons.beanutils.converters
Class ByteConverterTestCase

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.ByteConverterTestCase
All Implemented Interfaces:
junit.framework.Test

public class ByteConverterTestCase
extends NumberConverterTestBase

Test Case for the ByteConverter class.

Version:
$Revision: 471348 $ $Date: 2006-11-05 02:59:26 +0000 (Sun, 05 Nov 2006) $
Author:
Rodney Waldhoff

Field Summary
 
Fields inherited from class org.apache.commons.beanutils.converters.NumberConverterTestBase
numbers
 
Constructor Summary
ByteConverterTestCase(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
 

Constructor Detail

ByteConverterTestCase

public ByteConverterTestCase(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 © 2000-2010 The Apache Software Foundation. All Rights Reserved.