Package mondrian.xmla.test
Class XmlaTestContext
- java.lang.Object
-
- mondrian.xmla.test.XmlaTestContext
-
public class XmlaTestContext extends Object
Common utilities for XML/A testing, used in test suite and example XML/A web pages. Refactored from XmlaTest.- Author:
- Sherman Wood
-
-
Field Summary
Fields Modifier and Type Field Description static CatalogLocatorCATALOG_LOCATORstatic StringCATALOG_NAMEstatic StringDATASOURCE_DESCRIPTIONstatic StringDATASOURCE_INFOstatic StringDATASOURCE_NAMEstatic Map<String,String>ENV
-
Constructor Summary
Constructors Constructor Description XmlaTestContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSourcesConfig.DataSourcesdataSources()String[][]defaultRequests()Returns a list of sample XML requests.StringgetConnectString()StringgetDataSourcesString()static StringxmlFromTemplate(String xmlText, Map<String,String> env)
-
-
-
Field Detail
-
CATALOG_NAME
public static final String CATALOG_NAME
- See Also:
- Constant Field Values
-
DATASOURCE_NAME
public static final String DATASOURCE_NAME
- See Also:
- Constant Field Values
-
DATASOURCE_DESCRIPTION
public static final String DATASOURCE_DESCRIPTION
- See Also:
- Constant Field Values
-
DATASOURCE_INFO
public static final String DATASOURCE_INFO
- See Also:
- Constant Field Values
-
CATALOG_LOCATOR
public static final CatalogLocator CATALOG_LOCATOR
-
-
Method Detail
-
getConnectString
public String getConnectString()
-
dataSources
public DataSourcesConfig.DataSources dataSources()
-
getDataSourcesString
public String getDataSourcesString()
-
defaultRequests
public String[][] defaultRequests()
Returns a list of sample XML requests.Each item is a pair of strings: {test name, request}.
NOTE: This method is called from
xmlaTest.jsp. Do not remove it if you can't find calls from Java.- Returns:
- List of sample XML requests
-
-