Skip to content

Commit

Permalink
MONDRIAN: Fix exception while running tests from command line.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 7913]
  • Loading branch information
julianhyde committed Oct 12, 2006
1 parent 9938523 commit 7c47136
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions testsrc/main/mondrian/test/loader/CsvDBTestCase.java
Expand Up @@ -11,14 +11,13 @@

import mondrian.olap.Schema;
import mondrian.rolap.RolapConnection;
import mondrian.rolap.sql.SqlQuery;
import mondrian.test.FoodMartTestCase;
import mondrian.test.TestContext;
import java.sql.SQLException;
import java.sql.Connection;
import java.io.File;

/**
/**
* 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
Expand All @@ -28,7 +27,7 @@
* <p>
* To use this file one must define both the directory and file
* abstract methods.
*
*
* @author Richard M. Emberson
* @version $Id$
*/
Expand All @@ -37,20 +36,17 @@ public abstract class CsvDBTestCase extends FoodMartTestCase {
private CsvDBLoader loader;
private CsvDBLoader.Table[] tables;
private TestContext testContext;
protected final boolean applicable;

public CsvDBTestCase() {
super();
applicable = getTestContext().getDialect().allowsDdl();
}

public CsvDBTestCase(String name) {
super(name);
applicable = getTestContext().getDialect().allowsDdl();
}

protected final boolean isApplicable() {
return applicable;
return getTestContext().getDialect().allowsDdl();
}

protected void setUp() throws Exception {
Expand Down

0 comments on commit 7c47136

Please sign in to comment.