mondrian.test
Class ScenarioTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.test.FoodMartTestCase
              extended by mondrian.test.ScenarioTest
All Implemented Interfaces:
junit.framework.Test

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
ScenarioTest()
           
 
Method Summary
 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 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, warehouseMembersCanadaMexicoUsa
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

ScenarioTest

public ScenarioTest()
Method Detail

testCreateScenario

public void testCreateScenario()
                        throws SQLException
Tests creating a scenario and setting a connection's active scenario.

Throws:
SQLException

testSetCell

public void testSetCell()
                 throws SQLException
Tests setting the value of one cell.

Throws:
SQLException

testSetCellWithoutScenarioFails

public void testSetCellWithoutScenarioFails()
                                     throws SQLException
Tests that setting a cell's value without an active scenario is illegal.

Throws:
SQLException

testSetCellCalcError

public void testSetCellCalcError()
                          throws SQLException
Tests that setting a calculated member is illegal.

Throws:
SQLException

testUnsupportedAllocationPolicyFails

public void testUnsupportedAllocationPolicyFails()
                                          throws SQLException
Tests that allocation policies that are not supported give an error.

Throws:
SQLException

testEqualIncrement

public void testEqualIncrement()
                        throws SQLException
Tests setting cells by the "equal increment" allocation policy.

Throws:
SQLException

testEqualAllocation

public void testEqualAllocation()
                         throws SQLException
Tests setting cells by the "equal allocation" allocation policy.

Throws:
SQLException

testBugMondrian815

public void testBugMondrian815()
                        throws SQLException
Test case for MONDRIAN-815, "NPE from query if use a scenario and one of the cells is empty/null".

Throws:
SQLException

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