mondrian.rolap
Class BatchTestCase.TestCase

java.lang.Object
  extended by 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
(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
BatchTestCase.TestCase(Connection con, int resultLimit, int rowCount, String query)
           
BatchTestCase.TestCase(int resultLimit, int rowCount, String query)
           
 
Method Summary
protected  Result run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

BatchTestCase.TestCase

public BatchTestCase.TestCase(int resultLimit,
                              int rowCount,
                              String query)

BatchTestCase.TestCase

public BatchTestCase.TestCase(Connection con,
                              int resultLimit,
                              int rowCount,
                              String query)
Method Detail

run

protected Result run()

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads