Package mondrian.rolap
Class BatchTestCase.TestCase
- java.lang.Object
-
- mondrian.rolap.BatchTestCase.TestCase
-
- Enclosing class:
- BatchTestCase
protected class BatchTestCase.TestCase extends Object
Runs an MDX query with a predefined resultLimit and checks the number of positions of the row axis. The reduced resultLimit ensures that the optimization is present.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Connection
con
Mondrian connection.(package private) String
query
MDX query to execute.(package private) int
resultLimit
Maximum number of rows to be read from SQL.(package private) int
rowCount
Number of positions we expect on rows axis of result.
-
Constructor Summary
Constructors Constructor Description TestCase(int resultLimit, int rowCount, String query)
TestCase(Connection con, int resultLimit, int rowCount, String query)
-
-
-
Field Detail
-
resultLimit
final int resultLimit
Maximum number of rows to be read from SQL. If more than this number of rows are read, the test will fail.
-
query
final String query
MDX query to execute.
-
rowCount
final int rowCount
Number of positions we expect on rows axis of result.
-
con
final Connection con
Mondrian connection.
-
-
Constructor Detail
-
TestCase
public TestCase(int resultLimit, int rowCount, String query)
-
TestCase
public TestCase(Connection con, int resultLimit, int rowCount, String query)
-
-
Method Detail
-
run
protected Result run()
-
-