Package mondrian.rolap.agg
Class SegmentLoaderTest
- java.lang.Object
-
- TestCase
-
- mondrian.test.FoodMartTestCase
-
- mondrian.rolap.BatchTestCase
-
- mondrian.rolap.agg.SegmentLoaderTest
-
public class SegmentLoaderTest extends BatchTestCase
Test for
SegmentLoader
- Since:
- 06-Jun-2007
- Author:
- Thiyagu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SegmentLoaderTest.MyDelegatingInvocationHandler
-
Nested classes/interfaces inherited from class mondrian.rolap.BatchTestCase
BatchTestCase.TestCase
-
-
Field Summary
-
Fields inherited from class mondrian.rolap.BatchTestCase
cubeNameSales, fieldGender, fieldProductDepartment, fieldProductFamily, fieldValueProductDepartment, fieldValuesGender, fieldValuesProductFamily, fieldValuesYear, fieldYear, measureUnitSales, tableCustomer, tableProductClass, tableTime
-
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
-
-
Constructor Summary
Constructors Constructor Description SegmentLoaderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
setUp()
protected void
tearDown()
void
testGetGroupingBitKey()
void
testGetGroupingColumnsList()
void
testGroupingSetsUtilForMissingGroupingBitKeys()
void
testGroupingSetsUtilSetsDetailForRollupColumns()
void
testGroupingSetsUtilSetsForDetailForRollupColumns()
void
testGroupingSetsUtilSetsForGroupingFunctionIndex()
void
testLoadWithMockResultsForLoadingOnlyDetailedSegments()
void
testLoadWithMockResultsForLoadingSummaryAndDetailedSegments()
void
testLoadWithMockResultsForLoadingSummaryAndDetailedSegmentsUsingSparse()
void
testLoadWithWithNullInRollupColumn()
Tests load with mock results for loading summary and detailed segments with null in rollup column.void
testProcessDataForGettingGroupingSetsBitKeysAndLoadingAxisValueSet()
void
testProcessDataForNonGroupingSetsScenario()
void
testProcessDataForSettingNullAxis()
void
testRollup()
-
Methods inherited from class mondrian.rolap.BatchTestCase
assertNative, assertNoQuerySql, assertNotNative, assertQuerySql, assertQuerySql, assertQuerySql, assertQuerySqlOrNot, assertRequestSql, assertRequestSql, checkNative, checkNative, checkNative, checkNotNative, checkNotNative, checkNotNative, createBatch, createBatch, createRequest, createRequest, createRequest, createRequest, dialectize, executeQuery, getCube, getFoodMartConnection, getGroupingSet, getMeasure, mysqlPattern, sqlPattern
-
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, getTestContext, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, verifySameNativeAndNot, warehouseMembersCanadaMexicoUsa
-
-
-
-
Method Detail
-
setUp
protected void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
tearDown
protected void tearDown() throws java.lang.Exception
- Overrides:
tearDown
in classFoodMartTestCase
- Throws:
java.lang.Exception
-
testRollup
public void testRollup() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testLoadWithMockResultsForLoadingSummaryAndDetailedSegments
public void testLoadWithMockResultsForLoadingSummaryAndDetailedSegments() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
testLoadWithWithNullInRollupColumn
public void testLoadWithWithNullInRollupColumn() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Tests load with mock results for loading summary and detailed segments with null in rollup column.- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
testLoadWithMockResultsForLoadingSummaryAndDetailedSegmentsUsingSparse
public void testLoadWithMockResultsForLoadingSummaryAndDetailedSegmentsUsingSparse() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
testLoadWithMockResultsForLoadingOnlyDetailedSegments
public void testLoadWithMockResultsForLoadingOnlyDetailedSegments() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
testProcessDataForGettingGroupingSetsBitKeysAndLoadingAxisValueSet
public void testProcessDataForGettingGroupingSetsBitKeysAndLoadingAxisValueSet() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
testProcessDataForSettingNullAxis
public void testProcessDataForSettingNullAxis() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
testProcessDataForNonGroupingSetsScenario
public void testProcessDataForNonGroupingSetsScenario() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
testGetGroupingBitKey
public void testGetGroupingBitKey() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
testGroupingSetsUtilForMissingGroupingBitKeys
public void testGroupingSetsUtilForMissingGroupingBitKeys()
-
testGroupingSetsUtilSetsDetailForRollupColumns
public void testGroupingSetsUtilSetsDetailForRollupColumns()
-
testGroupingSetsUtilSetsForDetailForRollupColumns
public void testGroupingSetsUtilSetsForDetailForRollupColumns()
-
testGroupingSetsUtilSetsForGroupingFunctionIndex
public void testGroupingSetsUtilSetsForGroupingFunctionIndex()
-
testGetGroupingColumnsList
public void testGetGroupingColumnsList()
-
-