Skip to content

Commit

Permalink
Fixes all failing tests introduced by the new tester.
Browse files Browse the repository at this point in the history
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@329 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Jul 27, 2010
1 parent 92fe96c commit ffc916c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ abstract class XmlaOlap4jConnection implements OlapConnection {

final XmlaOlap4jProxy proxy;

private boolean closed;
private boolean closed = false;

/**
* URL of the HTTP server to which to send XML requests.
Expand Down
2 changes: 1 addition & 1 deletion testsrc/org/olap4j/ConnectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public void testConnectionUnwrap() throws SQLException {

public void testXmlaCatalogParameter() throws Exception {
if (tester.getFlavor() == TestContext.Tester.Flavor.XMLA
|| tester.getFlavor() != Tester.Flavor.XMLA)
|| tester.getFlavor() == Tester.Flavor.REMOTE_XMLA)
{
// We won't use the tester itself since we want to test
// creating a connection with and without a Catalog parameter.
Expand Down
6 changes: 3 additions & 3 deletions testsrc/org/olap4j/MetadataTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public void testDatabaseMetaDataGetCatalogs() throws SQLException {
CATALOGS_COLUMN_NAMES);
final String expected;
if (tester.getFlavor() == TestContext.Tester.Flavor.XMLA
|| tester.getFlavor() != Tester.Flavor.REMOTE_XMLA)
|| tester.getFlavor() == Tester.Flavor.REMOTE_XMLA)
{
// XMLA test uses dummy duplicate catalog to make sure that we
// get all catalogs
Expand All @@ -302,7 +302,7 @@ public void testDatabaseMetaDataGetSchemas() throws SQLException {
SCHEMAS_COLUMN_NAMES);
final String expected;
if (tester.getFlavor() == TestContext.Tester.Flavor.XMLA
|| tester.getFlavor() != Tester.Flavor.REMOTE_XMLA)
|| tester.getFlavor() == Tester.Flavor.REMOTE_XMLA)
{
// XMLA test uses dummy duplicate catalog to make sure that we
// get all catalogs
Expand Down Expand Up @@ -394,7 +394,7 @@ public void testDatabaseMetaDataGetCubes() throws SQLException {
s);
final int lineCount2 = linecount(s);
if (tester.getFlavor() == TestContext.Tester.Flavor.XMLA
|| tester.getFlavor() != Tester.Flavor.REMOTE_XMLA)
|| tester.getFlavor() == Tester.Flavor.REMOTE_XMLA)
{
assertEquals(lineCount * 2, lineCount2);
}
Expand Down

0 comments on commit ffc916c

Please sign in to comment.