mondrian.olap
Class UtilTestCase

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

public class UtilTestCase
extends junit.framework.TestCase

Tests for methods in Util and, sometimes, classes in the mondrian.util package.


Constructor Summary
UtilTestCase(String s)
           
 
Method Summary
(package private)  void checkMonikerValid(String moniker)
           
(package private)  void p(String connectString, String name, String expectedValue)
          Checks that connectString contains a property called name, whose value is value.
 void testAppendArrays()
          Tests Util.appendArrays(Object[], Object[][]).
 void testAreOccurrencesEqual()
           
 void testArraySortedSet()
          Unit test for ArraySortedSet.
 void testArrayStack()
          Unit test for ArrayStack.
 void testBinarySearch()
          Unit test for Util.binarySearch(T[], int, int, T).
 void testBufReplace()
           
 void testBugMondrian397()
          Test case for bug MONDRIAN-397, "Connect string parser gives StringIndexOutOfBoundsException instead of a meaningful error".
 void testByteMatcher()
           
 void testByteString()
          Unit test for ByteString.
 void testCamel()
           
 void testCanCast()
           
 void testCartesianProductList()
           
 void testCombiningGenerator()
          Unit test for CombiningGenerator.
 void testCompositeIterable()
          Unit test for Composite.of(Iterable[]).
 void testConnectStringMore()
           
 void testConvertConnectString()
          Unit test for Util.convertOlap4jConnectStringToNativeMondrian(java.lang.String).
 void testFlatList()
           
 void testImplode()
           
 void testIntersectSortedSet()
           
 void testLockBox()
          Unit test for LockBox.
 void testLockBoxFull()
          Unit test that ensures that LockBox can "forget" entries whose key has been forgotten.
 void testNullValuesMap()
          This is a simple test to make sure that Util.toNullValuesMap(List) never iterates on its source list upon creation.
 void testOleDbSpec()
           
 void testParseCommaList()
           
 void testParseConnectStringComplex()
           
 void testParseConnectStringSimple()
           
 void testParseIdentifier()
           
 void testParseInterval()
          Unit test for Util.parseInterval(java.lang.String, java.util.concurrent.TimeUnit).
 void testParseLocale()
          Unit test for Util.parseLocale(String) method.
 void testQuoteJava()
           
 void testQuoteMdxIdentifier()
           
 void testReplaceProperties()
           
 void testRolapUtilComparator()
           
 void testServiceDiscovery()
          Tests ServiceDiscovery.
 void testTriple()
          Unit test for Triple.
 void testUnionIterator()
           
 void testWildcard()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UtilTestCase

public UtilTestCase(String s)
Method Detail

testParseConnectStringSimple

public void testParseConnectStringSimple()

testParseConnectStringComplex

public void testParseConnectStringComplex()

testConnectStringMore

public void testConnectStringMore()

testBugMondrian397

public void testBugMondrian397()
Test case for bug MONDRIAN-397, "Connect string parser gives StringIndexOutOfBoundsException instead of a meaningful error".


p

void p(String connectString,
       String name,
       String expectedValue)
Checks that connectString contains a property called name, whose value is value.


testOleDbSpec

public void testOleDbSpec()

testConvertConnectString

public void testConvertConnectString()
Unit test for Util.convertOlap4jConnectStringToNativeMondrian(java.lang.String).


testQuoteMdxIdentifier

public void testQuoteMdxIdentifier()

testQuoteJava

public void testQuoteJava()

testBufReplace

public void testBufReplace()

testImplode

public void testImplode()

testParseIdentifier

public void testParseIdentifier()

testReplaceProperties

public void testReplaceProperties()

testWildcard

public void testWildcard()

testCamel

public void testCamel()

testParseCommaList

public void testParseCommaList()

testUnionIterator

public void testUnionIterator()

testAreOccurrencesEqual

public void testAreOccurrencesEqual()

testServiceDiscovery

public void testServiceDiscovery()
Tests ServiceDiscovery.


testArrayStack

public void testArrayStack()
Unit test for ArrayStack.


testAppendArrays

public void testAppendArrays()
Tests Util.appendArrays(Object[], Object[][]).


testCanCast

public void testCanCast()

testParseLocale

public void testParseLocale()
Unit test for Util.parseLocale(String) method.


testLockBox

public void testLockBox()
Unit test for LockBox.


checkMonikerValid

void checkMonikerValid(String moniker)

testLockBoxFull

public void testLockBoxFull()
Unit test that ensures that LockBox can "forget" entries whose key has been forgotten.


testCartesianProductList

public void testCartesianProductList()

testFlatList

public void testFlatList()

testCompositeIterable

public void testCompositeIterable()
Unit test for Composite.of(Iterable[]).


testCombiningGenerator

public void testCombiningGenerator()
Unit test for CombiningGenerator.


testByteString

public void testByteString()
Unit test for ByteString.


testBinarySearch

public void testBinarySearch()
Unit test for Util.binarySearch(T[], int, int, T).


testArraySortedSet

public void testArraySortedSet()
Unit test for ArraySortedSet.


testIntersectSortedSet

public void testIntersectSortedSet()

testTriple

public void testTriple()
Unit test for Triple.


testRolapUtilComparator

public void testRolapUtilComparator()
                             throws Exception
Throws:
Exception

testByteMatcher

public void testByteMatcher()
                     throws Exception
Throws:
Exception

testNullValuesMap

public void testNullValuesMap()
                       throws Exception
This is a simple test to make sure that Util.toNullValuesMap(List) never iterates on its source list upon creation.

Throws:
Exception

testParseInterval

public void testParseInterval()
Unit test for Util.parseInterval(java.lang.String, java.util.concurrent.TimeUnit).


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