Package mondrian.util
Class FormatTest
- java.lang.Object
-
- TestCase
-
- mondrian.util.FormatTest
-
public class FormatTest extends TestCase
Unit test forFormat
.- Since:
- May 26, 2006
- Author:
- jhyde
-
-
Constructor Summary
Constructors Constructor Description FormatTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testAllTokens()
void
testCache()
void
testCurrency()
Tests the international currency symbol parsing in format strings according to different locales.void
testCurrencyBug()
void
testDates()
void
testFormatThousands()
void
testFrenchLocale()
void
testFrenchNumbers()
void
testInfinity()
void
testNegativePercent()
void
testNegativePercentWithStyle()
Test case for bug MONDRIAN-687, "Format treats negative numbers differently than SSAS".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
testNonNumericValuesUsingNumericFormat()
void
testNull()
Null values use the fourth format.void
testNumberRoundingBug()
void
testNumbers()
Exhaustive tests on various numbers.void
testPercentWithStyle()
Test case for bug MONDRIAN-686, "Regression: JPivot output invalid - New Variance Percent column".void
testSingleQuotes()
Single quotes in format string.void
testSmallNegativeNumbers()
Test case for bug MONDRIAN-186, "Small negative numbers are printed as '-0'".void
testString()
void
testThousandsThousands()
Test case for bug MONDRIAN-968, "Thousands formatting does not work.void
testTrickyDates()
void
testTrickyNumbers()
-
-
-
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()
-
testPercentWithStyle
public void testPercentWithStyle()
Test case for bug MONDRIAN-686, "Regression: JPivot output invalid - New Variance Percent column".
-
testNegativePercentWithStyle
public void testNegativePercentWithStyle()
Test case for bug MONDRIAN-687, "Format treats negative numbers differently than SSAS".
-
testSingleQuotes
public void testSingleQuotes()
Single quotes in format string. SSAS 2005 removes them; Mondrian should also.
-
testNegativePercent
public void testNegativePercent()
-
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()
-
testString
public void testString()
-
testNonNumericValuesUsingNumericFormat
public void testNonNumericValuesUsingNumericFormat()
-
testFormatThousands
public void testFormatThousands()
-
testThousandsThousands
public void testThousandsThousands()
Test case for bug MONDRIAN-968, "Thousands formatting does not work. #,###,, <- Multiple Comma not rounding".
-
testCurrency
public void testCurrency()
Tests the international currency symbol parsing in format strings according to different locales.
-
testInfinity
public void testInfinity()
-
-