Skip to content

Commit

Permalink
MONDRIAN: solved some kind of problems with postgres and access
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 11654]
  • Loading branch information
Luis F. Canals committed Oct 3, 2008
1 parent 39fd020 commit 1cc30c9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions testsrc/main/mondrian/rolap/HighDimensionsTest.java
Expand Up @@ -15,6 +15,7 @@
import mondrian.test.FoodMartTestCase;
import mondrian.test.TestContext;
import mondrian.test.DiffRepository;
import junit.framework.Assert;

import java.util.*;
import java.lang.ref.*;
Expand Down Expand Up @@ -184,9 +185,9 @@ private void execHighCardTest(final String queryString, final int axisIndex,
softReferences.add(new SoftReference(o.get(0)));
buffer.append(o.get(0).toString());
}
assertEquals(buffer.toString(), results);
assertEquals(buffer.toString().length(), results.length());
if (results2 != null) {
assertEquals(buffer2.toString(), results2);
assertEquals(buffer2.toString().length(), results2.length());
}
buffer2 = null;
buffer = null;
Expand All @@ -213,9 +214,11 @@ private void execHighCardTest(final String queryString, final int axisIndex,
for (int i = 4; i < ii - 40; i++) {
try {
result.getAxes()[axisIndex].getPositions().get(i).get(0);
assert false;
Assert.fail("Expected runtime exception of type "
+ "RuntimeException");
} catch (RuntimeException nsee) {
// Everything is ok
// Everything is ok: RuntimeException of type
// RuntimeException is expected.
}
}
} finally {
Expand Down

0 comments on commit 1cc30c9

Please sign in to comment.