mondrian.test
Class DelegatingTestContext

java.lang.Object
  extended by mondrian.test.TestContext
      extended by mondrian.test.DelegatingTestContext

public class DelegatingTestContext
extends TestContext

Extension of TestContext which 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.HighCardDynamicSchemaProcessor, TestContext.SafeString, TestContext.SnoopingSchemaProcessor
 
Field Summary
protected  TestContext context
           
 
Fields inherited from class mondrian.test.TestContext
nl
 
Constructor Summary
protected DelegatingTestContext(TestContext context)
           
 
Method Summary
 Util.PropertyList getConnectionProperties()
           
 String getDefaultCubeName()
          Returns the name of the default cube.
 PrintWriter getWriter()
          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, assertQueryThrows, assertSetExprDependsOn, assertSimpleQuery, assertSqlEquals, cellIter, cellIter, checkThrowable, close, compileExpression, contains, copySuite, create, createSubstitutingCube, createSubstitutingCube, createSubstitutingCube, databaseIsValid, executeAxis, executeExprRaw, executeOlap4jQuery, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected final TestContext context
Constructor Detail

DelegatingTestContext

protected DelegatingTestContext(TestContext context)
Method Detail

getConnectionProperties

public Util.PropertyList getConnectionProperties()
Overrides:
getConnectionProperties in class TestContext

getDefaultCubeName

public String getDefaultCubeName()
Description copied from class: TestContext
Returns the name of the default cube.

Tests which evaluate scalar expressions, such as TestContext.assertExprReturns(String, String), generate queries against this cube.

Overrides:
getDefaultCubeName in class TestContext
Returns:
the name of the default cube

getWriter

public PrintWriter getWriter()
Description copied from class: TestContext
Returns the output writer.

Overrides:
getWriter in class TestContext

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