public class FormatTest
extends junit.framework.TestCase
Format
.Modifier and Type | Field and Description |
---|---|
(package private) Number |
d |
(package private) Date |
date |
(package private) Date |
date2 |
Constructor and Description |
---|
FormatTest() |
Modifier and Type | Method and 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() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
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
public void testNumbers()
public void testFrenchNumbers()
public void testTrickyNumbers()
public void testSmallNegativeNumbers()
public void testNil()
public void testNull()
public void testNegativeZero()
public void testPercentWithStyle()
public void testNegativePercentWithStyle()
public void testSingleQuotes()
public void testNegativePercent()
public void testNumberRoundingBug()
public void testCurrencyBug()
public void testDates()
public void testAllTokens()
public void testTrickyDates()
public void testFrenchLocale()
public void testCache()
public void testString()
public void testNonNumericValuesUsingNumericFormat()
public void testFormatThousands()
public void testThousandsThousands()
public void testCurrency()
public void testInfinity()