Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.beanutils
Class ConvertUtilsTestCase  view ConvertUtilsTestCase download ConvertUtilsTestCase.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.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: 1.10 $ $Date: 2004/02/28 13:18:36 $

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ConvertUtilsTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
private  void checkIntegerArray(java.lang.Object value, int[] intArray)
           
private  void checkStringArray(java.lang.Object value, java.lang.String[] stringArray)
           
 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 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(java.lang.String name)
Construct a new instance of this test case.

Method Detail

setUp

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


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.


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 java.lang.Exception

testDeregisteringSingleConverter

public void testDeregisteringSingleConverter()
                                      throws java.lang.Exception

checkIntegerArray

private void checkIntegerArray(java.lang.Object value,
                               int[] intArray)

checkStringArray

private void checkStringArray(java.lang.Object value,
                              java.lang.String[] stringArray)