Package mondrian.xmla
Class XmlaMetaDataConstraintsTest
- java.lang.Object
-
- TestCase
-
- mondrian.test.FoodMartTestCase
-
- mondrian.xmla.XmlaBaseTestCase
-
- mondrian.xmla.XmlaMetaDataConstraintsTest
-
public class XmlaMetaDataConstraintsTest extends XmlaBaseTestCase
This test creates 2 catalogs and constraints on one of them. Then it runs a few queries to check that the filtering occurs as expected.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.xmla.XmlaBaseTestCase
XmlaBaseTestCase.Action, XmlaBaseTestCase.CallBack, XmlaBaseTestCase.XmlaRequestCallbackImpl
-
-
Field Summary
-
Fields inherited from class mondrian.xmla.XmlaBaseTestCase
CATALOG, CATALOG_NAME_PROP, CATALOG_PROP, catalogNameUrls, CUBE_NAME_PROP, DATA_SOURCE_INFO, DATA_SOURCE_INFO_PROP, DEBUG, FORMAT_MULTI_DIMENSIONAL, FORMAT_PROP, LAST_SCHEMA_UPDATE_DATE, LOCALE_PROP, REQUEST_TYPE_PROP, ROLE_PROP, SALES_CUBE, SESSION_ID_PROP
-
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
-
-
Constructor Summary
Constructors Constructor Description XmlaMetaDataConstraintsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
filterConnectString(java.lang.String original)
protected java.util.Map<java.lang.String,java.lang.String>
getCatalogNameUrls(TestContext testContext)
protected DiffRepository
getDiffRepos()
protected java.lang.Class<? extends XmlaRequestCallback>
getServletCallbackClass()
protected java.lang.String
getSessionId(XmlaBaseTestCase.Action action)
Creates, retrieves or clears the session id for this test.protected void
setUp()
void
testCatalogsFiltered()
void
testCatalogsFilteredByRestraints()
void
testCubesFiltered()
void
testCubesFilteredByRestraints()
void
testDBSchemataFiltered()
void
testDBSchemataFilteredByRestraints()
-
Methods inherited from class mondrian.xmla.XmlaBaseTestCase
addDatasourceInfoResponseKey, doTest, doTest, doTest, doTest, doTestInline, doTestInline, doTests, doTestsJson, fileToDocument, fileToString, filter, generateExpectedString, generateRequestString, getDefaultRequestProperties, getServlet, getSessionId, helperTest, helperTestExpect, maskVersion, replaceLastSchemaUpdateDate, tearDown, validate
-
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
-
getCatalogNameUrls
protected java.util.Map<java.lang.String,java.lang.String> getCatalogNameUrls(TestContext testContext)
- Overrides:
getCatalogNameUrls
in classXmlaBaseTestCase
-
filterConnectString
protected java.lang.String filterConnectString(java.lang.String original)
- Overrides:
filterConnectString
in classXmlaBaseTestCase
-
testDBSchemataFiltered
public void testDBSchemataFiltered() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDBSchemataFilteredByRestraints
public void testDBSchemataFilteredByRestraints() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCatalogsFiltered
public void testCatalogsFiltered() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCatalogsFilteredByRestraints
public void testCatalogsFilteredByRestraints() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCubesFiltered
public void testCubesFiltered() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCubesFilteredByRestraints
public void testCubesFilteredByRestraints() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getDiffRepos
protected DiffRepository getDiffRepos()
- Specified by:
getDiffRepos
in classXmlaBaseTestCase
-
getServletCallbackClass
protected java.lang.Class<? extends XmlaRequestCallback> getServletCallbackClass()
- Specified by:
getServletCallbackClass
in classXmlaBaseTestCase
-
getSessionId
protected java.lang.String getSessionId(XmlaBaseTestCase.Action action)
Description copied from class:XmlaBaseTestCase
Creates, retrieves or clears the session id for this test.- Specified by:
getSessionId
in classXmlaBaseTestCase
- Parameters:
action
- Action to perform- Returns:
- Session id for create, query; null for clear
-
-