org.ujac.util.text.test
Class SmartDecimalFormatTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ujac.util.text.test.SmartDecimalFormatTest
All Implemented Interfaces:
junit.framework.Test

public class SmartDecimalFormatTest
extends junit.framework.TestCase

Name: SmartDecimalFormatTest
Description: Test cases for the SmartDecimalFormat class.

Author:
lauerc

Constructor Summary
SmartDecimalFormatTest()
           
 
Method Summary
protected  void setUp()
           
 void testFormat()
          Tests formatting of numbers.
 void testNaN()
          Tests output of invalid numbers.
 void testParse()
          Tests parsing of numbers.
 void testRound()
          Tests correct rounding of numbers.
 void testRoundDown()
          Tests correct rounding of numbers.
 void testRoundHalfDown()
          Tests correct rounding of numbers.
 void testRoundHalfUp()
          Tests correct rounding of numbers.
 void testRoundUp()
          Tests correct rounding of numbers.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SmartDecimalFormatTest

public SmartDecimalFormatTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception
See Also:
TestCase.setUp()

testParse

public void testParse()
               throws ParseException
Tests parsing of numbers.

Throws:
ParseException - In case the parsing failed.

testFormat

public void testFormat()
Tests formatting of numbers.


testRound

public void testRound()
Tests correct rounding of numbers.


testRoundUp

public void testRoundUp()
Tests correct rounding of numbers.


testRoundDown

public void testRoundDown()
Tests correct rounding of numbers.


testRoundHalfUp

public void testRoundHalfUp()
Tests correct rounding of numbers.


testRoundHalfDown

public void testRoundHalfDown()
Tests correct rounding of numbers.


testNaN

public void testNaN()
Tests output of invalid numbers.



Copyright © 2003-2004 UJAC.org. All Rights Reserved.