Package mondrian.xmla

Class XmlaBasicTest


  • public class XmlaBasicTest
    extends XmlaBaseTestCase
    Test XML/A functionality.
    Author:
    Richard M. Emberson
    • Constructor Detail

      • XmlaBasicTest

        public XmlaBasicTest()
      • XmlaBasicTest

        public XmlaBasicTest​(java.lang.String name)
    • Method Detail

      • setUp

        protected void setUp()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • extractSoapResponse

        protected java.lang.String extractSoapResponse​(org.w3c.dom.Document responseDoc,
                                                       XmlaConstants.Content content)
      • testDDatasource

        public void testDDatasource()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDEnumerators

        public void testDEnumerators()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDKeywords

        public void testDKeywords()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDLiterals

        public void testDLiterals()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDProperties

        public void testDProperties()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDSchemaRowsets

        public void testDSchemaRowsets()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDBCatalogs

        public void testDBCatalogs()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDBSchemata

        public void testDBSchemata()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _testDBColumns

        public void _testDBColumns()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _testDBProviderTypes

        public void _testDBProviderTypes()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • _testDBTablesInfo

        public void _testDBTablesInfo()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDBTables

        public void testDBTables()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDActions

        public void testMDActions()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDCubes

        public void testMDCubes()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDCubesJson

        public void testMDCubesJson()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDCubesDeep

        public void testMDCubesDeep()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDCubesDeepJson

        public void testMDCubesDeepJson()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDCubesLocale

        public void testMDCubesLocale()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDCubesLcid

        public void testMDCubesLcid()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDSets

        public void testMDSets()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDDimensions

        public void testMDDimensions()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDDimensionsShared

        public void testMDDimensionsShared()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDFunction

        public void testMDFunction()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDFunctions

        public void testMDFunctions()
                             throws java.lang.Exception
        Tests the output of the MDSCHEMA_FUNCTIONS call.
        Throws:
        java.lang.Exception - on error
      • testMDHierarchies

        public void testMDHierarchies()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDLevels

        public void testMDLevels()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDLevelsAccessControlled

        public void testMDLevelsAccessControlled()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDMeasures

        public void testMDMeasures()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDMembers

        public void testMDMembers()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDMembersMulti

        public void testMDMembersMulti()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDMembersTreeop

        public void testMDMembersTreeop()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMDProperties

        public void testMDProperties()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testApproxRowCountOverridesCountCallsToDatabase

        public void testApproxRowCountOverridesCountCallsToDatabase()
                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testApproxRowCountInHierarchyOverridesCountCallsToDatabase

        public void testApproxRowCountInHierarchyOverridesCountCallsToDatabase()
                                                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDrillThroughMaxRows

        public void testDrillThroughMaxRows()
                                     throws java.lang.Exception
        Tests an 'DRILLTHROUGH SELECT' statement with a 'MAXROWS' clause.
        Throws:
        java.lang.Exception - on error
      • testDrillThrough

        public void testDrillThrough()
                              throws java.lang.Exception
        Tests an 'DRILLTHROUGH SELECT' statement with no 'MAXROWS' clause.
        Throws:
        java.lang.Exception - on error
      • testDrillThroughZeroDimensionalQuery

        public void testDrillThroughZeroDimensionalQuery()
                                                  throws java.lang.Exception
        Tests an 'DRILLTHROUGH SELECT' statement with a zero-dimensional query, that is, a query with 'SELECT FROM', and no axes.
        Throws:
        java.lang.Exception - on error
      • filter

        protected java.lang.String filter​(java.lang.String testCaseName,
                                          java.lang.String filename,
                                          java.lang.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 class XmlaBaseTestCase
        Parameters:
        testCaseName - Name of current test case, e.g. "testFoo"
        filename - Name of requested content, e.g. "${request}"
        content - Content
        Returns:
        Modified content
      • testExecuteSlicer

        public void testExecuteSlicer()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteSlicerJson

        public void testExecuteSlicerJson()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteSlicer_ContentDataOmitDefaultSlicer

        public void testExecuteSlicer_ContentDataOmitDefaultSlicer()
                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteNoSlicer_ContentDataOmitDefaultSlicer

        public void testExecuteNoSlicer_ContentDataOmitDefaultSlicer()
                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteSlicer_ContentDataIncludeDefaultSlicer

        public void testExecuteSlicer_ContentDataIncludeDefaultSlicer()
                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteNoSlicer_ContentDataIncludeDefaultSlicer

        public void testExecuteNoSlicer_ContentDataIncludeDefaultSlicer()
                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteEmptySlicer_ContentDataIncludeDefaultSlicer

        public void testExecuteEmptySlicer_ContentDataIncludeDefaultSlicer()
                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteEmptySlicer_ContentDataOmitDefaultSlicer

        public void testExecuteEmptySlicer_ContentDataOmitDefaultSlicer()
                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteWithoutCellProperties

        public void testExecuteWithoutCellProperties()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteWithCellProperties

        public void testExecuteWithCellProperties()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteWithMemberKeyDimensionPropertyForMemberWithoutKey

        public void testExecuteWithMemberKeyDimensionPropertyForMemberWithoutKey()
                                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteWithMemberKeyDimensionPropertyForMemberWithKey

        public void testExecuteWithMemberKeyDimensionPropertyForMemberWithKey()
                                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteWithMemberKeyDimensionPropertyForAllMember

        public void testExecuteWithMemberKeyDimensionPropertyForAllMember()
                                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteWithKeyDimensionProperty

        public void testExecuteWithKeyDimensionProperty()
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteWithDimensionProperties

        public void testExecuteWithDimensionProperties()
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteCrossjoinRole

        public void testExecuteCrossjoinRole()
                                      throws java.lang.Exception
        This test returns the same result as testExecuteCrossjoin above except that the Role used disables accessing [Customers].[All Customers].[Mexico].
        Throws:
        java.lang.Exception
      • testExecuteBugMondrian762

        public void testExecuteBugMondrian762()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExecuteBugMondrian1316

        public void testExecuteBugMondrian1316()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • doTestRT

        public void doTestRT​(java.lang.String requestType,
                             TestContext testContext)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • 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 class XmlaBaseTestCase
        Parameters:
        action - Action to perform
        Returns:
        Session id for create, query; null for clear