Class CsvDBTestCase

  • Direct Known Subclasses:
    AggTableTestCase, Checkin_7634, Checkin_7641

    public abstract class CsvDBTestCase
    extends BatchTestCase
    Base class for tests that use a CSV database defined in a single file. While the CsvDBLoader supports being defined by a single file, list of files, or directory with optional regular expression for matching files in the directory to be loaded, this is simplest at this point.

    To use this file one must define both the directory and file abstract methods.

    Author:
    Richard M. Emberson
    • Constructor Detail

      • CsvDBTestCase

        public CsvDBTestCase()
      • CsvDBTestCase

        public CsvDBTestCase​(java.lang.String name)
    • Method Detail

      • isApplicable

        protected final boolean isApplicable()
      • setUp

        protected void setUp()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createTestContext

        protected TestContext createTestContext()
      • tearDown

        protected void tearDown()
                         throws java.lang.Exception
        Overrides:
        tearDown in class FoodMartTestCase
        Throws:
        java.lang.Exception
      • getSqlConnection

        protected java.sql.Connection getSqlConnection()
                                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getSchema

        protected Schema getSchema()
      • getDirectoryName

        protected abstract java.lang.String getDirectoryName()
      • getFileName

        protected abstract java.lang.String getFileName()
      • getParameterDescription

        protected java.lang.String getParameterDescription()
      • getCubeDescription

        protected java.lang.String getCubeDescription()
      • getVirtualCubeDescription

        protected java.lang.String getVirtualCubeDescription()
      • getNamedSetDescription

        protected java.lang.String getNamedSetDescription()
      • getUdfDescription

        protected java.lang.String getUdfDescription()
      • getRoleDescription

        protected java.lang.String getRoleDescription()