Package mondrian.rolap.sql
Class CodeSetTest
- java.lang.Object
-
- TestCase
-
- mondrian.rolap.sql.CodeSetTest
-
public class CodeSetTest extends TestCase- Author:
- Tatsiana_Kasiankova
-
-
Constructor Summary
Constructors Constructor Description CodeSetTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestMondrianExceptionThrown_WhenCodeSetContainsNOCodeForDialect()If SqlQuery.CodeSet contains no sql code with specified dialect at all (even 'generic'), the MondrianException should be thrown.voidtestSucces_CodeSetContainsCodeForBothPostgresAndGenericDialects()ISSUE MONDRIAN-2335 If SqlQuery.CodeSet contains sql code for both dialect="postgres" and dialect="generic", the code for dialect="postgres"should be chosen.voidtestSucces_CodeSetContainsCodeForBothPostgresAndPostgresqlDialects()ISSUE MONDRIAN-2335 If SqlQuery.CodeSet contains sql code for both dialect="postgres" and dialect="postgresql", the code for dialect="postgres"should be chosen.voidtestSucces_CodeSetContainsOnlyCodeForGenericlDialect()If SqlQuery.CodeSet contains sql code for dialect="generic" , the code for dialect="generic" should be chosen.voidtestSucces_CodeSetContainsOnlyCodeForPostgresDialect()ISSUE MONDRIAN-2335 If SqlQuery.CodeSet contains only sql code for dialect="postgres", this code should be chosen.
-
-
-
Method Detail
-
testSucces_CodeSetContainsOnlyCodeForPostgresDialect
public void testSucces_CodeSetContainsOnlyCodeForPostgresDialect() throws ExceptionISSUE MONDRIAN-2335 If SqlQuery.CodeSet contains only sql code for dialect="postgres", this code should be chosen. No error should be thrown- Throws:
Exception
-
testSucces_CodeSetContainsCodeForBothPostgresAndGenericDialects
public void testSucces_CodeSetContainsCodeForBothPostgresAndGenericDialects() throws ExceptionISSUE 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:
Exception
-
testSucces_CodeSetContainsCodeForBothPostgresAndPostgresqlDialects
public void testSucces_CodeSetContainsCodeForBothPostgresAndPostgresqlDialects() throws ExceptionISSUE 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:
Exception
-
testSucces_CodeSetContainsOnlyCodeForGenericlDialect
public void testSucces_CodeSetContainsOnlyCodeForGenericlDialect() throws ExceptionIf SqlQuery.CodeSet contains sql code for dialect="generic" , the code for dialect="generic" should be chosen. No error should be thrown- Throws:
Exception
-
testMondrianExceptionThrown_WhenCodeSetContainsNOCodeForDialect
public void testMondrianExceptionThrown_WhenCodeSetContainsNOCodeForDialect() throws ExceptionIf SqlQuery.CodeSet contains no sql code with specified dialect at all (even 'generic'), the MondrianException should be thrown.- Throws:
Exception
-
-