Package mondrian.test
Class DelegatingTestContext
- java.lang.Object
-
- mondrian.test.TestContext
-
- mondrian.test.DelegatingTestContext
-
public class DelegatingTestContext extends TestContext
Extension ofTestContextwhich delegates all behavior to a parent test context.Derived classes can selectively override methods.
- Since:
- 7 September, 2005
- Author:
- jhyde
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.test.TestContext
TestContext.ConnectionInvocationHandler, TestContext.DatabaseMetaDataInvocationHandler, TestContext.HighCardDynamicSchemaProcessor, TestContext.SafeString, TestContext.SnoopingSchemaProcessor
-
-
Field Summary
Fields Modifier and Type Field Description protected TestContextcontext-
Fields inherited from class mondrian.test.TestContext
nl
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDelegatingTestContext(TestContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Util.PropertyListgetConnectionProperties()StringgetDefaultCubeName()Returns the name of the default cube.PrintWritergetWriter()Returns the output writer.-
Methods inherited from class mondrian.test.TestContext
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, 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
-
-
-
-
Field Detail
-
context
protected final TestContext context
-
-
Constructor Detail
-
DelegatingTestContext
protected DelegatingTestContext(TestContext context)
-
-
Method Detail
-
getConnectionProperties
public Util.PropertyList getConnectionProperties()
- Overrides:
getConnectionPropertiesin classTestContext
-
getDefaultCubeName
public String getDefaultCubeName()
Description copied from class:TestContextReturns the name of the default cube.Tests which evaluate scalar expressions, such as
TestContext.assertExprReturns(String, String), generate queries against this cube.- Overrides:
getDefaultCubeNamein classTestContext- Returns:
- the name of the default cube
-
getWriter
public PrintWriter getWriter()
Description copied from class:TestContextReturns the output writer.- Overrides:
getWriterin classTestContext
-
-