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 CatalogLocator
CATALOG_LOCATOR
static String
CATALOG_NAME
static String
DATASOURCE_DESCRIPTION
static String
DATASOURCE_INFO
static String
DATASOURCE_NAME
static 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.DataSources
dataSources()
String[][]
defaultRequests()
Returns a list of sample XML requests.String
getConnectString()
String
getDataSourcesString()
static String
xmlFromTemplate(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
-
-