org.ujac.util.text.test
Class BigDecimalFormatTest

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

public class BigDecimalFormatTest
extends junit.framework.TestCase

Name: BigDecimalFormatTest
Description: Test cases for the BigDecimalFormat class.

Author:
lauerc

Constructor Summary
BigDecimalFormatTest()
           
 
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.
 
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

BigDecimalFormatTest

public BigDecimalFormatTest()
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.


testNaN

public void testNaN()
Tests output of invalid numbers.



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