|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
mondrian.test.FoodMartTestCase
mondrian.xmla.XmlaBaseTestCase
mondrian.xmla.XmlaBasicTest
public class XmlaBasicTest
Test XML/A functionality.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class mondrian.xmla.XmlaBaseTestCase |
---|
XmlaBaseTestCase.Action, XmlaBaseTestCase.CallBack |
Field Summary | |
---|---|
static String |
CONTENT_DATA
|
static String |
CONTENT_DATAOMITDEFAULTSLICER
|
static String |
CONTENT_NONE
|
static String |
CONTENT_PROP
|
static String |
CONTENT_SCHEMA
|
static String |
CONTENT_SCHEMADATA
|
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, FORMAT_MULTI_DIMENSIONAL, FORMAT_PROP, HR_CUBE, LAST_SCHEMA_UPDATE_DATE, LAST_SCHEMA_UPDATE_DATE_PROP, REQUEST_TYPE_PROP, SALES_CUBE, SESSION_ID_PROP |
Fields inherited from class mondrian.test.FoodMartTestCase |
---|
propSaver |
Constructor Summary | |
---|---|
XmlaBasicTest()
|
|
XmlaBasicTest(String name)
|
Method Summary | |
---|---|
void |
_testDBColumns()
|
void |
_testDBProviderTypes()
|
void |
_testDBTablesInfo()
|
void |
doTestRT(String requestType,
TestContext testContext)
|
protected String |
extractSoapResponse(Document responseDoc,
Enumeration.Content content)
|
protected String |
filter(String testCaseName,
String filename,
String content)
Filters the content of a test resource. |
protected DiffRepository |
getDiffRepos()
|
protected Class<? extends XmlaRequestCallback> |
getServletCallbackClass()
|
protected String |
getSessionId(XmlaBaseTestCase.Action action)
Creates, retrieves or clears the session id for this test. |
void |
testApproxRowCountInHierarchyOverridesCountCallsToDatabase()
|
void |
testApproxRowCountOverridesCountCallsToDatabase()
|
void |
testDBCatalogs()
|
void |
testDBSchemata()
|
void |
testDBTables()
|
void |
testDDatasource()
|
void |
testDEnumerators()
|
void |
testDKeywords()
|
void |
testDLiterals()
|
void |
testDProperties()
|
void |
testDrillThrough()
Tests an 'DRILLTHROUGH SELECT' statement with no 'MAXROWS' clause. |
void |
testDrillThroughMaxRows()
Tests an 'DRILLTHROUGH SELECT' statement with a 'MAXROWS' clause. |
void |
testDrillThroughZeroDimensionalQuery()
Tests an 'DRILLTHROUGH SELECT' statement with a zero-dimensional query, that is, a query with 'SELECT FROM', and no axes. |
void |
testDSchemaRowsets()
|
void |
testExecuteCrossjoin()
|
void |
testExecuteCrossjoinRole()
This test returns the same result as testExecuteCrossjoin above except that the Role used disables accessing [Customers].[All Customers].[Mexico]. |
void |
testExecuteNoSlicerContentDataOmitDefaultSlicer()
|
void |
testExecuteSlicer()
|
void |
testExecuteSlicerContentDataOmitDefaultSlicer()
|
void |
testExecuteWithCellProperties()
|
void |
testExecuteWithDimensionProperties()
|
void |
testExecuteWithKeyDimensionProperty()
|
void |
testExecuteWithMemberKeyDimensionPropertyForAllMember()
|
void |
testExecuteWithMemberKeyDimensionPropertyForMemberWithKey()
|
void |
testExecuteWithMemberKeyDimensionPropertyForMemberWithoutKey()
|
void |
testExecuteWithoutCellProperties()
|
void |
testMDActions()
|
void |
testMDCubes()
|
void |
testMDFunction()
|
void |
testMDFunctions()
Tests the output of the MDSCHEMA_FUNCTIONS call in JDK 1.5 or later. |
void |
testMDFunctionsJdk14()
Tests the output of the MDSCHEMA_FUNCTIONS call in JDK 1.4, which is different because metadata such as function name and description is encoded using Java annotations, and hence is not available until JDK 1.5. |
void |
testMDHierarchies()
|
void |
testMDimensions()
|
void |
testMDLevels()
|
void |
testMDLevelsAccessControlled()
|
void |
testMDMeasures()
|
void |
testMDMembers()
|
void |
testMDMembersMulti()
|
void |
testMDMembersTreeop()
|
void |
testMDProperties()
|
void |
testMDSets()
|
Methods inherited from class mondrian.xmla.XmlaBaseTestCase |
---|
clearServlet, doTest, doTest, doTestInline, doTestInline, doTests, fileToDocument, fileToString, getCatalogNameUrls, getDefaultRequestProperties, getServlet, getSessionId, replaceLastSchemaUpdateDate |
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, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String FORMAT_TABLULAR
public static final String UNIQUE_NAME_ELEMENT
public static final String UNIQUE_NAME_PROP
public static final String RESTRICTION_NAME_PROP
public static final String RESTRICTION_VALUE_PROP
public static final String CONTENT_PROP
public static final String CONTENT_NONE
public static final String CONTENT_DATA
public static final String CONTENT_SCHEMA
public static final String CONTENT_SCHEMADATA
public static final String CONTENT_DATAOMITDEFAULTSLICER
Constructor Detail |
---|
public XmlaBasicTest()
public XmlaBasicTest(String name)
Method Detail |
---|
protected DiffRepository getDiffRepos()
getDiffRepos
in class XmlaBaseTestCase
protected Class<? extends XmlaRequestCallback> getServletCallbackClass()
getServletCallbackClass
in class XmlaBaseTestCase
protected String extractSoapResponse(Document responseDoc, Enumeration.Content content)
public void testDDatasource() throws Exception
Exception
public void testDEnumerators() throws Exception
Exception
public void testDKeywords() throws Exception
Exception
public void testDLiterals() throws Exception
Exception
public void testDProperties() throws Exception
Exception
public void testDSchemaRowsets() throws Exception
Exception
public void testDBCatalogs() throws Exception
Exception
public void testDBSchemata() throws Exception
Exception
public void _testDBColumns() throws Exception
Exception
public void _testDBProviderTypes() throws Exception
Exception
public void _testDBTablesInfo() throws Exception
Exception
public void testDBTables() throws Exception
Exception
public void testMDActions() throws Exception
Exception
public void testMDCubes() throws Exception
Exception
public void testMDSets() throws Exception
Exception
public void testMDimensions() throws Exception
Exception
public void testMDFunction() throws Exception
Exception
public void testMDFunctions() throws Exception
testMDFunctionsJdk14()
.
Exception
- on errorpublic void testMDFunctionsJdk14() throws Exception
testMDFunctions()
.
Exception
- on errorpublic void testMDHierarchies() throws Exception
Exception
public void testMDLevels() throws Exception
Exception
public void testMDLevelsAccessControlled() throws Exception
Exception
public void testMDMeasures() throws Exception
Exception
public void testMDMembers() throws Exception
Exception
public void testMDMembersMulti() throws Exception
Exception
public void testMDMembersTreeop() throws Exception
Exception
public void testMDProperties() throws Exception
Exception
public void testApproxRowCountOverridesCountCallsToDatabase() throws Exception
Exception
public void testApproxRowCountInHierarchyOverridesCountCallsToDatabase() throws Exception
Exception
public void testDrillThroughMaxRows() throws Exception
Exception
- on errorpublic void testDrillThrough() throws Exception
Exception
- on errorpublic void testDrillThroughZeroDimensionalQuery() throws Exception
Exception
- on errorprotected String filter(String testCaseName, String filename, String content)
XmlaBaseTestCase
filter
in class XmlaBaseTestCase
testCaseName
- Name of current test case, e.g. "testFoo"filename
- Name of requested content, e.g. "${request}"content
- Content
public void testExecuteSlicer() throws Exception
Exception
public void testExecuteSlicerContentDataOmitDefaultSlicer() throws Exception
Exception
public void testExecuteNoSlicerContentDataOmitDefaultSlicer() throws Exception
Exception
public void testExecuteWithoutCellProperties() throws Exception
Exception
public void testExecuteWithCellProperties() throws Exception
Exception
public void testExecuteWithMemberKeyDimensionPropertyForMemberWithoutKey() throws Exception
Exception
public void testExecuteWithMemberKeyDimensionPropertyForMemberWithKey() throws Exception
Exception
public void testExecuteWithMemberKeyDimensionPropertyForAllMember() throws Exception
Exception
public void testExecuteWithKeyDimensionProperty() throws Exception
Exception
public void testExecuteWithDimensionProperties() throws Exception
Exception
public void testExecuteCrossjoin() throws Exception
Exception
public void testExecuteCrossjoinRole() throws Exception
Exception
public void doTestRT(String requestType, TestContext testContext) throws Exception
Exception
protected String getSessionId(XmlaBaseTestCase.Action action)
XmlaBaseTestCase
getSessionId
in class XmlaBaseTestCase
action
- Action to perform
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |