Package mondrian.test
Class ScenarioTest
- java.lang.Object
-
- TestCase
-
- mondrian.test.FoodMartTestCase
-
- mondrian.test.ScenarioTest
-
public class ScenarioTest extends FoodMartTestCase
Test for writeback functionality.- Since:
- 24 April, 2009
- Author:
- jhyde
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.test.FoodMartTestCase
FoodMartTestCase.QueryAndResult
-
-
Field Summary
-
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
-
-
Constructor Summary
Constructors Constructor Description ScenarioTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testBugMondrian815()
Test case for MONDRIAN-815, "NPE from query if use a scenario and one of the cells is empty/null".void
testCreateScenario()
Tests creating a scenario and setting a connection's active scenario.void
testEqualAllocation()
Tests setting cells by the "equal allocation" allocation policy.void
testEqualIncrement()
Tests setting cells by the "equal increment" allocation policy.void
testScenarioPropertyBug1496()
void
testSetCell()
Tests setting the value of one cell.void
testSetCellCalcError()
Tests that setting a calculated member is illegal.void
testSetCellWithoutScenarioFails()
Tests that setting a cell's value without an active scenario is illegal.void
testUnsupportedAllocationPolicyFails()
Tests that allocation policies that are not supported give an error.-
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, tearDown, verifySameNativeAndNot, warehouseMembersCanadaMexicoUsa
-
-
-
-
Method Detail
-
testCreateScenario
public void testCreateScenario() throws java.sql.SQLException
Tests creating a scenario and setting a connection's active scenario.- Throws:
java.sql.SQLException
-
testSetCell
public void testSetCell() throws java.sql.SQLException
Tests setting the value of one cell.- Throws:
java.sql.SQLException
-
testSetCellWithoutScenarioFails
public void testSetCellWithoutScenarioFails() throws java.sql.SQLException
Tests that setting a cell's value without an active scenario is illegal.- Throws:
java.sql.SQLException
-
testSetCellCalcError
public void testSetCellCalcError() throws java.sql.SQLException
Tests that setting a calculated member is illegal.- Throws:
java.sql.SQLException
-
testUnsupportedAllocationPolicyFails
public void testUnsupportedAllocationPolicyFails() throws java.sql.SQLException
Tests that allocation policies that are not supported give an error.- Throws:
java.sql.SQLException
-
testEqualIncrement
public void testEqualIncrement() throws java.sql.SQLException
Tests setting cells by the "equal increment" allocation policy.- Throws:
java.sql.SQLException
-
testEqualAllocation
public void testEqualAllocation() throws java.sql.SQLException
Tests setting cells by the "equal allocation" allocation policy.- Throws:
java.sql.SQLException
-
testBugMondrian815
public void testBugMondrian815() throws java.sql.SQLException
Test case for MONDRIAN-815, "NPE from query if use a scenario and one of the cells is empty/null".- Throws:
java.sql.SQLException
-
testScenarioPropertyBug1496
public void testScenarioPropertyBug1496()
-
-