mondrian.xmla.test
Class XmlaTestContext

java.lang.Object
  extended by 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
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
XmlaTestContext()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

ENV

public static final Map<String,String> ENV

CATALOG_LOCATOR

public static final CatalogLocator CATALOG_LOCATOR
Constructor Detail

XmlaTestContext

public XmlaTestContext()
Method Detail

getConnectString

public String getConnectString()

dataSources

public DataSourcesConfig.DataSources dataSources()

getDataSourcesString

public String getDataSourcesString()

xmlFromTemplate

public static String xmlFromTemplate(String xmlText,
                                     Map<String,String> env)

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

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads