org.apache.commons.beanutils
Class ConvertUtilsTestCase

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

public class ConvertUtilsTestCase
extends junit.framework.TestCase

Test Case for the ConvertUtils class.

Version:
$Revision: 551047 $ $Date: 2007-06-27 01:34:15 -0400 (Wed, 27 Jun 2007) $
Author:
Craig R. McClanahan

Constructor Summary
ConvertUtilsTestCase(String name)
          Construct a new instance of this test case.
 
Method Summary
 void setUp()
          Set up instance variables required by this test case.
static junit.framework.Test suite()
          Return the tests included in this test suite.
 void tearDown()
          Tear down instance variables required by this test case.
 void testConvertToString()
           
 void testDeregisteringSingleConverter()
           
 void testNegativeIntegerArray()
          Negative String to primitive integer array tests.
 void testNegativeScalar()
          Negative scalar conversion tests.
 void testNegativeStringArray()
          Negative String to String array tests.
 void testObjectToStringArray()
          Test conversion of object to string for arrays.
 void testObjectToStringScalar()
          Test conversion of object to string for scalars.
 void testPositiveArray()
          Positive array conversion tests.
 void testPositiveIntegerArray()
          Positive String to primitive integer array tests.
 void testPositiveScalar()
          Positive scalar conversion tests.
 void testPositiveStringArray()
          Positive String to String array tests.
 void testSeparateConvertInstances()
           
 
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

ConvertUtilsTestCase

public ConvertUtilsTestCase(String name)
Construct a new instance of this test case.

Parameters:
name - Name of the test case
Method Detail

setUp

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

Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Return the tests included in this test suite.


tearDown

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

Overrides:
tearDown in class junit.framework.TestCase

testNegativeIntegerArray

public void testNegativeIntegerArray()
Negative String to primitive integer array tests.


testNegativeScalar

public void testNegativeScalar()
Negative scalar conversion tests. These rely on the standard default value conversions in ConvertUtils.


testNegativeStringArray

public void testNegativeStringArray()
Negative String to String array tests.


testObjectToStringArray

public void testObjectToStringArray()
Test conversion of object to string for arrays.


testObjectToStringScalar

public void testObjectToStringScalar()
Test conversion of object to string for scalars.


testPositiveArray

public void testPositiveArray()
Positive array conversion tests.


testPositiveIntegerArray

public void testPositiveIntegerArray()
Positive String to primitive integer array tests.


testPositiveScalar

public void testPositiveScalar()
Positive scalar conversion tests.


testPositiveStringArray

public void testPositiveStringArray()
Positive String to String array tests.


testSeparateConvertInstances

public void testSeparateConvertInstances()
                                  throws Exception
Throws:
Exception

testDeregisteringSingleConverter

public void testDeregisteringSingleConverter()
                                      throws Exception
Throws:
Exception

testConvertToString

public void testConvertToString()
                         throws Exception
Throws:
Exception


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