Class 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 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.
    • 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()