mondrian.rolap
Class RolapResultTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.test.FoodMartTestCase
              extended by mondrian.test.loader.CsvDBTestCase
                  extended by mondrian.rolap.aggmatcher.AggTableTestCase
                      extended by mondrian.rolap.RolapResultTest
All Implemented Interfaces:
junit.framework.Test

public class RolapResultTest
extends AggTableTestCase

Testcase for

Since:
Feb 21 2007
Author:
Richard M. Emberson

Field Summary
 
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
 
Constructor Summary
RolapResultTest()
           
RolapResultTest(String name)
           
 
Method Summary
 void _testNullDefaultMeasure()
          This ought to give the same result as the above testD2() method.
protected  String getCubeDescription()
           
protected  String getDirectoryName()
           
protected  String getFileName()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testAll()
           
 void testD1()
           
 void testD2()
           
 void testNonAllPromotionMembers()
           
 
Methods inherited from class mondrian.test.loader.CsvDBTestCase
createTestContext, getNamedSetDescription, getParameterDescription, getRoleDescription, getSchema, getSqlConnection, getTestContext, getUdfDescription, getVirtualCubeDescription, isApplicable
 
Methods inherited from class mondrian.test.FoodMartTestCase
allMember, assertAxisReturns, assertAxisThrows, assertBooleanExprReturns, assertExprReturns, assertExprThrows, assertQueriesReturnSimilarResults, assertQueryReturns, assertQueryThrows, assertSize, cubeByName, execute, executeExpr, executeQuery, executeSingletonAxis, genderMembersIncludingAll, getConnection, getDimensionWithName, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, warehouseMembersCanadaMexicoUsa
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

RolapResultTest

public RolapResultTest()

RolapResultTest

public RolapResultTest(String name)
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class AggTableTestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class CsvDBTestCase
Throws:
Exception

testAll

public void testAll()
             throws Exception
Throws:
Exception

testD1

public void testD1()
            throws Exception
Throws:
Exception

testD2

public void testD2()
            throws Exception
Throws:
Exception

_testNullDefaultMeasure

public void _testNullDefaultMeasure()
                             throws Exception
This ought to give the same result as the above testD2() method. In this case, the FT2Extra cube has a default measure with no data (null) for all members. This default measure is used in the evaluation even though there is an implicit use of the measure [Measures].[Value].

Throws:
Exception

getFileName

protected String getFileName()
Specified by:
getFileName in class CsvDBTestCase

getDirectoryName

protected String getDirectoryName()
Overrides:
getDirectoryName in class AggTableTestCase

getCubeDescription

protected String getCubeDescription()
Overrides:
getCubeDescription in class CsvDBTestCase

testNonAllPromotionMembers

public void testNonAllPromotionMembers()

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