mondrian.util
Class FormatTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.util.FormatTest
All Implemented Interfaces:
Test

public class FormatTest
extends TestCase

Unit test for Format.

Since:
May 26, 2006
Version:
$Id: //open/mondrian/testsrc/main/mondrian/util/FormatTest.java#18 $
Author:
jhyde

Field Summary
(package private)  java.lang.Number d
           
(package private)  java.util.Date date
           
(package private)  java.util.Date date2
           
 
Constructor Summary
FormatTest()
           
 
Method Summary
 void testAllTokens()
           
 void testCache()
           
 void testCurrencyBug()
           
 void testDates()
           
 void testFrenchLocale()
           
 void testFrenchNumbers()
           
 void testNegativeZero()
           
 void testNil()
          When there are format strings for positive and negative numbers, and a number is too small to appear in either format string, it underflows to 'Nil', and gets to use a third format.
 void testNull()
          Null values use the fourth format.
 void testNumberRoundingBug()
           
 void testNumbers()
          Exhaustive tests on various numbers.
 void testSmallNegativeNumbers()
          Test case for bug MONDRIAN-186, "Small negative numbers are printed as '-0'".
 void testTrickyDates()
           
 void testTrickyNumbers()
           
 
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
 

Field Detail

d

final java.lang.Number d

date

final java.util.Date date

date2

final java.util.Date date2
Constructor Detail

FormatTest

public FormatTest()
Method Detail

testNumbers

public void testNumbers()
Exhaustive tests on various numbers.


testFrenchNumbers

public void testFrenchNumbers()

testTrickyNumbers

public void testTrickyNumbers()

testSmallNegativeNumbers

public void testSmallNegativeNumbers()
Test case for bug MONDRIAN-186, "Small negative numbers are printed as '-0'".


testNil

public void testNil()
When there are format strings for positive and negative numbers, and a number is too small to appear in either format string, it underflows to 'Nil', and gets to use a third format.


testNull

public void testNull()
Null values use the fourth format.


testNegativeZero

public void testNegativeZero()

testNumberRoundingBug

public void testNumberRoundingBug()

testCurrencyBug

public void testCurrencyBug()

testDates

public void testDates()

testAllTokens

public void testAllTokens()

testTrickyDates

public void testTrickyDates()

testFrenchLocale

public void testFrenchLocale()

testCache

public void testCache()

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads