public class DelegatingTestContext extends TestContext
TestContext
which delegates all behavior to
a parent test context.
Derived classes can selectively override methods.
TestContext.ConnectionInvocationHandler, TestContext.DatabaseMetaDataInvocationHandler, TestContext.HighCardDynamicSchemaProcessor, TestContext.SafeString, TestContext.SnoopingSchemaProcessor
Modifier and Type | Field and Description |
---|---|
protected TestContext |
context |
nl
Modifier | Constructor and Description |
---|---|
protected |
DelegatingTestContext(TestContext context) |
Modifier and Type | Method and Description |
---|---|
Util.PropertyList |
getConnectionProperties() |
String |
getDefaultCubeName()
Returns the name of the default cube.
|
PrintWriter |
getWriter()
Returns the output writer.
|
allHiers, allHiersExcept, assertAxisReturns, assertAxisThrows, assertEqualsVerbose, assertEqualsVerbose, assertEqualsVerbose, assertExprDependsOn, assertExprReturns, assertExprThrows, assertMatchesVerbose, assertMemberExprDependsOn, assertParameterizedExprReturns, assertQueryReturns, assertQueryReturns, assertQueryThrows, assertSetExprDependsOn, assertSimpleQuery, assertSqlEquals, cellIter, cellIter, checkThrowable, close, compileExpression, contains, copySuite, create, createSubstitutingCube, createSubstitutingCube, createSubstitutingCube, databaseIsValid, executeAxis, executeExprRaw, executeOlap4jQuery, executeOlap4jXmlaQuery, executeQuery, executeSingletonAxis, executeStatement, flushSchemaCache, fold, getCacheControl, getConnection, getConnectString, getDefaultConnectString, getDialect, getFakeDialect, getOlap4jConnection, getRawFoodMartSchema, getRawSchema, getSchema, getSchemaWarnings, getStackTrace, hierarchyName, instance, levelName, repeatString, toString, toString, toString, unfold, upgradeActual, upgradeQuery, withConnection, withCube, withFreshConnection, withProperties, withRole, withScenario, withSchema, withSchemaPool, withSchemaProcessor
protected final TestContext context
protected DelegatingTestContext(TestContext context)
public Util.PropertyList getConnectionProperties()
getConnectionProperties
in class TestContext
public String getDefaultCubeName()
TestContext
Tests which evaluate scalar expressions, such as
TestContext.assertExprReturns(String, String)
, generate queries against this
cube.
getDefaultCubeName
in class TestContext
public PrintWriter getWriter()
TestContext
getWriter
in class TestContext