Class BatchTestCase.TestCase

  • Enclosing class:
    BatchTestCase

    protected class BatchTestCase.TestCase
    extends java.lang.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) java.lang.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, java.lang.String query)  
      TestCase​(Connection con, int resultLimit, int rowCount, java.lang.String query)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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 java.lang.String query
        MDX query to execute.
      • rowCount

        final int rowCount
        Number of positions we expect on rows axis of result.
    • Constructor Detail

      • TestCase

        public TestCase​(int resultLimit,
                        int rowCount,
                        java.lang.String query)
      • TestCase

        public TestCase​(Connection con,
                        int resultLimit,
                        int rowCount,
                        java.lang.String query)
    • Method Detail

      • run

        protected Result run()