|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.ujac.util.text.test.SmartDecimalFormatTest
public class SmartDecimalFormatTest
Name: SmartDecimalFormatTest
Description: Test cases for the SmartDecimalFormat class.
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 |
---|
public SmartDecimalFormatTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
TestCase.setUp()
public void testParse() throws ParseException
ParseException
- In case the parsing failed.public void testFormat()
public void testRound()
public void testRoundUp()
public void testRoundDown()
public void testRoundHalfUp()
public void testRoundHalfDown()
public void testNaN()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |