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 void
setUp()
void
testMondrianExceptionThrown_WhenCodeSetContainsNOCodeForDialect()
If SqlQuery.CodeSet contains no sql code with specified dialect at all (even 'generic'), the MondrianException should be thrown.void
testSucces_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.void
testSucces_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.void
testSucces_CodeSetContainsOnlyCodeForGenericlDialect()
If SqlQuery.CodeSet contains sql code for dialect="generic" , the code for dialect="generic" should be chosen.void
testSucces_CodeSetContainsOnlyCodeForPostgresDialect()
ISSUE MONDRIAN-2335 If SqlQuery.CodeSet contains only sql code for dialect="postgres", this code should be chosen.
-
-
-
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
-
-