Class CodeSetTest


  • public class CodeSetTest
    extends TestCase
    Author:
    Tatsiana_Kasiankova
    • Constructor Detail

      • CodeSetTest

        public CodeSetTest()
    • Method Detail

      • setUp

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

        public void testSucces_CodeSetContainsOnlyCodeForPostgresDialect()
                                                                  throws java.lang.Exception
        ISSUE MONDRIAN-2335 If SqlQuery.CodeSet contains only sql code for dialect="postgres", this code should be chosen. No error should be thrown
        Throws:
        java.lang.Exception
      • testSucces_CodeSetContainsCodeForBothPostgresAndGenericDialects

        public void testSucces_CodeSetContainsCodeForBothPostgresAndGenericDialects()
                                                                             throws java.lang.Exception
        ISSUE MONDRIAN-2335 If SqlQuery.CodeSet contains sql code for both dialect="postgres" and dialect="generic", the code for dialect="postgres"should be chosen. No error should be thrown
        Throws:
        java.lang.Exception
      • testSucces_CodeSetContainsCodeForBothPostgresAndPostgresqlDialects

        public void testSucces_CodeSetContainsCodeForBothPostgresAndPostgresqlDialects()
                                                                                throws java.lang.Exception
        ISSUE MONDRIAN-2335 If SqlQuery.CodeSet contains sql code for both dialect="postgres" and dialect="postgresql", the code for dialect="postgres"should be chosen. No error should be thrown
        Throws:
        java.lang.Exception
      • testSucces_CodeSetContainsOnlyCodeForGenericlDialect

        public void testSucces_CodeSetContainsOnlyCodeForGenericlDialect()
                                                                  throws java.lang.Exception
        If SqlQuery.CodeSet contains sql code for dialect="generic" , the code for dialect="generic" should be chosen. No error should be thrown
        Throws:
        java.lang.Exception
      • testMondrianExceptionThrown_WhenCodeSetContainsNOCodeForDialect

        public void testMondrianExceptionThrown_WhenCodeSetContainsNOCodeForDialect()
                                                                             throws java.lang.Exception
        If SqlQuery.CodeSet contains no sql code with specified dialect at all (even 'generic'), the MondrianException should be thrown.
        Throws:
        java.lang.Exception