org.dbunit.dataset.datatype
Class NumberTolerantDataTypeTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.dataset.datatype.AbstractDataTypeTest
              extended by org.dbunit.dataset.datatype.NumberTolerantDataTypeTest
All Implemented Interfaces:
junit.framework.Test

public class NumberTolerantDataTypeTest
extends AbstractDataTypeTest

Unit test for the number tolerant data type which is quite similar to the NumberDataTypeTest.

Author:
gommma

Constructor Summary
NumberTolerantDataTypeTest(String name)
           
 
Method Summary
 void testAsString()
           
 void testCompareDifferent()
           
 void testCompareEquals()
           
 void testCompareInvalid()
           
 void testCompareToWithDelta_DiffOutsideOfToleratedDelta()
           
 void testCompareToWithDelta_DiffWithinToleratedDelta()
           
 void testCompareToWithDeltaPercentage_DiffOutsideOfToleratedDelta()
           
 void testCompareToWithDeltaPercentage_DiffWithinToleratedDelta()
           
 void testCreateWithNegativeDelta()
           
 void testForObject()
           
 void testGetSqlValue()
           
 void testGetTypeClass()
           
 void testIsDateTime()
           
 void testIsNumber()
           
 void testSqlType()
           
 void testToString()
           
 void testTypeCast()
           
 void testTypeCastInvalid()
           
 void testTypeCastNone()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberTolerantDataTypeTest

public NumberTolerantDataTypeTest(String name)
Method Detail

testCreateWithNegativeDelta

public void testCreateWithNegativeDelta()
                                 throws Exception
Throws:
Exception

testCompareToWithDelta_DiffWithinToleratedDelta

public void testCompareToWithDelta_DiffWithinToleratedDelta()
                                                     throws Exception
Throws:
Exception

testCompareToWithDelta_DiffOutsideOfToleratedDelta

public void testCompareToWithDelta_DiffOutsideOfToleratedDelta()
                                                        throws Exception
Throws:
Exception

testCompareToWithDeltaPercentage_DiffWithinToleratedDelta

public void testCompareToWithDeltaPercentage_DiffWithinToleratedDelta()
                                                               throws Exception
Throws:
Exception

testCompareToWithDeltaPercentage_DiffOutsideOfToleratedDelta

public void testCompareToWithDeltaPercentage_DiffOutsideOfToleratedDelta()
                                                                  throws Exception
Throws:
Exception

testToString

public void testToString()
                  throws Exception
Specified by:
testToString in class AbstractDataTypeTest
Throws:
Exception

testGetTypeClass

public void testGetTypeClass()
                      throws Exception
Specified by:
testGetTypeClass in class AbstractDataTypeTest
Throws:
Exception

testIsNumber

public void testIsNumber()
                  throws Exception
Specified by:
testIsNumber in class AbstractDataTypeTest
Throws:
Exception

testIsDateTime

public void testIsDateTime()
                    throws Exception
Specified by:
testIsDateTime in class AbstractDataTypeTest
Throws:
Exception

testTypeCast

public void testTypeCast()
                  throws Exception
Specified by:
testTypeCast in class AbstractDataTypeTest
Throws:
Exception

testTypeCastNone

public void testTypeCastNone()
                      throws Exception
Specified by:
testTypeCastNone in class AbstractDataTypeTest
Throws:
Exception

testTypeCastInvalid

public void testTypeCastInvalid()
                         throws Exception
Specified by:
testTypeCastInvalid in class AbstractDataTypeTest
Throws:
Exception

testCompareEquals

public void testCompareEquals()
                       throws Exception
Specified by:
testCompareEquals in class AbstractDataTypeTest
Throws:
Exception

testCompareInvalid

public void testCompareInvalid()
                        throws Exception
Specified by:
testCompareInvalid in class AbstractDataTypeTest
Throws:
Exception

testCompareDifferent

public void testCompareDifferent()
                          throws Exception
Specified by:
testCompareDifferent in class AbstractDataTypeTest
Throws:
Exception

testSqlType

public void testSqlType()
                 throws Exception
Specified by:
testSqlType in class AbstractDataTypeTest
Throws:
Exception

testForObject

public void testForObject()
                   throws Exception
Specified by:
testForObject in class AbstractDataTypeTest
Throws:
Exception

testAsString

public void testAsString()
                  throws Exception
Specified by:
testAsString in class AbstractDataTypeTest
Throws:
Exception

testGetSqlValue

public void testGetSqlValue()
                     throws Exception
Specified by:
testGetSqlValue in class AbstractDataTypeTest
Throws:
Exception


Copyright © 2002-2012. All Rights Reserved.