Package mondrian.xmla
Class XmlaBasicTest
- java.lang.Object
-
- TestCase
-
- mondrian.test.FoodMartTestCase
-
- mondrian.xmla.XmlaBaseTestCase
-
- mondrian.xmla.XmlaBasicTest
-
public class XmlaBasicTest extends XmlaBaseTestCase
Test XML/A functionality.- Author:
- Richard M. Emberson
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.xmla.XmlaBaseTestCase
XmlaBaseTestCase.Action, XmlaBaseTestCase.CallBack, XmlaBaseTestCase.XmlaRequestCallbackImpl
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTENT_PROP
static String
FORMAT_TABLULAR
static String
RESTRICTION_NAME_PROP
static String
RESTRICTION_VALUE_PROP
static String
UNIQUE_NAME_ELEMENT
static String
UNIQUE_NAME_PROP
-
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 XmlaBasicTest()
XmlaBasicTest(String name)
-
Method Summary
-
Methods inherited from class mondrian.xmla.XmlaBaseTestCase
addDatasourceInfoResponseKey, doTest, doTest, doTest, doTest, doTestInline, doTestInline, doTests, doTestsJson, fileToDocument, fileToString, filterConnectString, generateExpectedString, generateRequestString, getCatalogNameUrls, 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
-
-
-
-
Field Detail
-
FORMAT_TABLULAR
public static final String FORMAT_TABLULAR
- See Also:
- Constant Field Values
-
UNIQUE_NAME_ELEMENT
public static final String UNIQUE_NAME_ELEMENT
- See Also:
- Constant Field Values
-
UNIQUE_NAME_PROP
public static final String UNIQUE_NAME_PROP
- See Also:
- Constant Field Values
-
RESTRICTION_NAME_PROP
public static final String RESTRICTION_NAME_PROP
- See Also:
- Constant Field Values
-
RESTRICTION_VALUE_PROP
public static final String RESTRICTION_VALUE_PROP
- See Also:
- Constant Field Values
-
CONTENT_PROP
public static final String CONTENT_PROP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XmlaBasicTest
public XmlaBasicTest()
-
XmlaBasicTest
public XmlaBasicTest(String name)
-
-
Method Detail
-
getDiffRepos
protected DiffRepository getDiffRepos()
- Specified by:
getDiffRepos
in classXmlaBaseTestCase
-
getServletCallbackClass
protected Class<? extends XmlaRequestCallback> getServletCallbackClass()
- Specified by:
getServletCallbackClass
in classXmlaBaseTestCase
-
extractSoapResponse
protected String extractSoapResponse(Document responseDoc, XmlaConstants.Content content)
-
testMDFunctions
public void testMDFunctions() throws Exception
Tests the output of the MDSCHEMA_FUNCTIONS call.- Throws:
Exception
- on error
-
testMDLevelsAccessControlled
public void testMDLevelsAccessControlled() throws Exception
- Throws:
Exception
-
testApproxRowCountOverridesCountCallsToDatabase
public void testApproxRowCountOverridesCountCallsToDatabase() throws Exception
- Throws:
Exception
-
testApproxRowCountInHierarchyOverridesCountCallsToDatabase
public void testApproxRowCountInHierarchyOverridesCountCallsToDatabase() throws Exception
- Throws:
Exception
-
testDrillThroughMaxRows
public void testDrillThroughMaxRows() throws Exception
Tests an 'DRILLTHROUGH SELECT' statement with a 'MAXROWS' clause.- Throws:
Exception
- on error
-
testDrillThrough
public void testDrillThrough() throws Exception
Tests an 'DRILLTHROUGH SELECT' statement with no 'MAXROWS' clause.- Throws:
Exception
- on error
-
testDrillThroughZeroDimensionalQuery
public void testDrillThroughZeroDimensionalQuery() throws Exception
Tests an 'DRILLTHROUGH SELECT' statement with a zero-dimensional query, that is, a query with 'SELECT FROM', and no axes.- Throws:
Exception
- on error
-
filter
protected String filter(String testCaseName, String filename, String content)
Description copied from class:XmlaBaseTestCase
Filters the content of a test resource. The default implementation returns the content unchanged, but a derived class might override this method to change the content.- Overrides:
filter
in classXmlaBaseTestCase
- Parameters:
testCaseName
- Name of current test case, e.g. "testFoo"filename
- Name of requested content, e.g. "${request}"content
- Content- Returns:
- Modified content
-
testExecuteSlicer_ContentDataOmitDefaultSlicer
public void testExecuteSlicer_ContentDataOmitDefaultSlicer() throws Exception
- Throws:
Exception
-
testExecuteNoSlicer_ContentDataOmitDefaultSlicer
public void testExecuteNoSlicer_ContentDataOmitDefaultSlicer() throws Exception
- Throws:
Exception
-
testExecuteSlicer_ContentDataIncludeDefaultSlicer
public void testExecuteSlicer_ContentDataIncludeDefaultSlicer() throws Exception
- Throws:
Exception
-
testExecuteNoSlicer_ContentDataIncludeDefaultSlicer
public void testExecuteNoSlicer_ContentDataIncludeDefaultSlicer() throws Exception
- Throws:
Exception
-
testExecuteEmptySlicer_ContentDataIncludeDefaultSlicer
public void testExecuteEmptySlicer_ContentDataIncludeDefaultSlicer() throws Exception
- Throws:
Exception
-
testExecuteEmptySlicer_ContentDataOmitDefaultSlicer
public void testExecuteEmptySlicer_ContentDataOmitDefaultSlicer() throws Exception
- Throws:
Exception
-
testExecuteWithoutCellProperties
public void testExecuteWithoutCellProperties() throws Exception
- Throws:
Exception
-
testExecuteWithCellProperties
public void testExecuteWithCellProperties() throws Exception
- Throws:
Exception
-
testExecuteWithMemberKeyDimensionPropertyForMemberWithoutKey
public void testExecuteWithMemberKeyDimensionPropertyForMemberWithoutKey() throws Exception
- Throws:
Exception
-
testExecuteWithMemberKeyDimensionPropertyForMemberWithKey
public void testExecuteWithMemberKeyDimensionPropertyForMemberWithKey() throws Exception
- Throws:
Exception
-
testExecuteWithMemberKeyDimensionPropertyForAllMember
public void testExecuteWithMemberKeyDimensionPropertyForAllMember() throws Exception
- Throws:
Exception
-
testExecuteWithKeyDimensionProperty
public void testExecuteWithKeyDimensionProperty() throws Exception
- Throws:
Exception
-
testExecuteWithDimensionProperties
public void testExecuteWithDimensionProperties() throws Exception
- Throws:
Exception
-
testExecuteCrossjoin
public void testExecuteCrossjoin() throws Exception
Testcase for bug MONDRIAN-257, "Crossjoin gives 'Execute unparse results' error in XMLA".- Throws:
Exception
-
testExecuteCrossjoinRole
public void testExecuteCrossjoinRole() throws Exception
This test returns the same result as testExecuteCrossjoin above except that the Role used disables accessing [Customers].[All Customers].[Mexico].- Throws:
Exception
-
testExecuteBugMondrian762
public void testExecuteBugMondrian762() throws Exception
- Throws:
Exception
-
testExecuteBugMondrian1316
public void testExecuteBugMondrian1316() throws Exception
- Throws:
Exception
-
doTestRT
public void doTestRT(String requestType, TestContext testContext) throws Exception
- Throws:
Exception
-
getSessionId
protected 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
-
-