|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
mondrian.test.FoodMartTestCase
mondrian.rolap.BatchTestCase
mondrian.rolap.sql.SqlQueryTest
public class SqlQueryTest
Test for SqlQuery
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class mondrian.rolap.BatchTestCase |
---|
BatchTestCase.TestCase |
Field Summary |
---|
Fields inherited from class mondrian.rolap.BatchTestCase |
---|
cubeNameSales, fieldGender, fieldProductDepartment, fieldProductFamily, fieldValueProductDepartment, fieldValuesGender, fieldValuesProductFamily, fieldValuesYear, fieldYear, measureUnitSales, tableCustomer, tableProductClass, tableTime |
Fields inherited from class mondrian.test.FoodMartTestCase |
---|
propSaver |
Constructor Summary | |
---|---|
SqlQueryTest()
|
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testApproxRowCountOverridesCount()
This test makes sure that a level which specifies an approxRowCount property prevents Mondrian from executing a count() sql query. |
void |
testDoubleInList()
Verifies that the correct SQL string is generated for literals of SQL type "double". |
void |
testInvalidSqlMemberLookup()
Testcase for bug MONDRIAN-457, "Strange SQL condition appears when executing query". |
void |
testPredicatesAreNotOptimizedWhenPropertyIsFalse()
|
void |
testPredicatesAreOptimizedWhenAllTheMembersAreIncluded()
|
void |
testPredicatesAreOptimizedWhenPropertyIsTrue()
|
void |
testTableNameIsIncludedWithParentChildQuery()
|
void |
testToStringForForcedIndexHint()
|
void |
testToStringForGroupingSetSqlWithEmptyGroup()
|
void |
testToStringForMultipleGroupingSetsSql()
|
void |
testToStringForSingleGroupingSetSql()
|
Methods inherited from class mondrian.rolap.BatchTestCase |
---|
assertNative, assertNoQuerySql, assertNotNative, assertQuerySql, assertQuerySql, assertQuerySql, assertQuerySqlOrNot, assertRequestSql, assertRequestSql, checkNative, checkNative, checkNative, checkNotNative, checkNotNative, checkNotNative, createBatch, createBatch, createRequest, createRequest, createRequest, createRequest, dialectize, executeQuery, getCube, getFoodMartConnection, getGroupingSet, getMeasure |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SqlQueryTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class FoodMartTestCase
Exception
public void testToStringForSingleGroupingSetSql()
public void testToStringForForcedIndexHint()
public void testPredicatesAreOptimizedWhenPropertyIsTrue()
public void testTableNameIsIncludedWithParentChildQuery()
public void testPredicatesAreNotOptimizedWhenPropertyIsFalse()
public void testPredicatesAreOptimizedWhenAllTheMembersAreIncluded()
public void testToStringForGroupingSetSqlWithEmptyGroup()
public void testToStringForMultipleGroupingSetsSql()
public void testDoubleInList()
Mondrian only generates SQL DOUBLE values in a special format for LucidDB; therefore, this test is a no-op on other databases.
public void testInvalidSqlMemberLookup()
public void testApproxRowCountOverridesCount()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |