|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase mondrian.test.FoodMartTestCase mondrian.test.loader.CsvDBTestCase
public abstract class CsvDBTestCase
Base class for tests that use a CSV database defined in a single file. While the CsvDBLoader supports being defined by a single file, list of files, or directory with optional regular expression for matching files in the directory to be loaded, this is simplest at this point.
To use this file one must define both the directory and file abstract methods.
Field Summary |
---|
Fields inherited from class mondrian.test.FoodMartTestCase |
---|
propSaver |
Constructor Summary | |
---|---|
CsvDBTestCase()
|
|
CsvDBTestCase(String name)
|
Method Summary | |
---|---|
protected TestContext |
createTestContext()
|
protected String |
getCubeDescription()
|
protected abstract String |
getDirectoryName()
|
protected abstract String |
getFileName()
|
protected String |
getNamedSetDescription()
|
protected String |
getParameterDescription()
|
protected String |
getRoleDescription()
|
protected Schema |
getSchema()
|
protected Connection |
getSqlConnection()
|
TestContext |
getTestContext()
Returns the test context. |
protected String |
getUdfDescription()
|
protected String |
getVirtualCubeDescription()
|
protected boolean |
isApplicable()
|
protected void |
setUp()
|
protected void |
tearDown()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CsvDBTestCase()
public CsvDBTestCase(String name)
Method Detail |
---|
protected final boolean isApplicable()
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected TestContext createTestContext()
public TestContext getTestContext()
FoodMartTestCase
getTestContext
in class FoodMartTestCase
protected void tearDown() throws Exception
tearDown
in class FoodMartTestCase
Exception
protected Connection getSqlConnection() throws SQLException
SQLException
protected Schema getSchema()
protected abstract String getDirectoryName()
protected abstract String getFileName()
protected String getParameterDescription()
protected String getCubeDescription()
protected String getVirtualCubeDescription()
protected String getNamedSetDescription()
protected String getUdfDescription()
protected String getRoleDescription()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |