mondrian.test
Class SteelWheelsSchemaTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.test.SteelWheelsTestCase
              extended by mondrian.test.SteelWheelsSchemaTest
All Implemented Interfaces:
junit.framework.Test

public class SteelWheelsSchemaTest
extends SteelWheelsTestCase


Nested Class Summary
static class SteelWheelsSchemaTest.Mondrian756SchemaProcessor
           
 
Constructor Summary
SteelWheelsSchemaTest()
           
 
Method Summary
 void testBugMondrian755()
          Test case for bug MONDRIAN-755, "Getting drillthrough count results in exception".
 void testBugMondrian756()
          Test case for bug MONDRIAN-756, "Error in RolapResult.replaceNonAllMembers leads to NPE".
 void testBugMondrian756b()
          Test case for bug MONDRIAN-756, "Error in RolapResult.replaceNonAllMembers leads to NPE".
 void testBugMondrian805()
          Test case for bug MONDRIAN-805, "Two dimensions with hasAll=false fail".
 void testBugMondrian935()
           
 void testEsr1587()
          Tests a query that is generated by Analyzer to query members.
 void testMarkets()
          Test case for Infobright issue where [Markets].[All Markets].[Japan] was not found but [Markets].[All Markets].[JAPAN] was OK.
 void testMeasures()
          Sanity check, that enumerates the Measures dimension.
 void testMondrian1133()
           
 void testMondrian1197()
          Fix for MONDRIAN-1197 Not all members were created the same.
 void testMondrian1273()
           
 void testMondrianBug476_770_957()
           
 void testPropertyWithParameterOfTimestampType()
          Test case for bug MONDRIAN-626, "DATE type Levels can cause errors with certain JDBC drivers (e.g.
 void testRangeSortWithNullKeys()
          This is a test for ANALYZER-1259 Using the range operator on a level with null keys returned weird results.
 
Methods inherited from class mondrian.test.SteelWheelsTestCase
createContext, getTestContext
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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

SteelWheelsSchemaTest

public SteelWheelsSchemaTest()
Method Detail

testMeasures

public void testMeasures()
Sanity check, that enumerates the Measures dimension.


testMondrian1273

public void testMondrian1273()

testMarkets

public void testMarkets()
Test case for Infobright issue where [Markets].[All Markets].[Japan] was not found but [Markets].[All Markets].[JAPAN] was OK. (We've since dropped 'All Xxx' from member unique names.)


testBugMondrian755

public void testBugMondrian755()
Test case for bug MONDRIAN-755, "Getting drillthrough count results in exception".


testBugMondrian756

public void testBugMondrian756()
Test case for bug MONDRIAN-756, "Error in RolapResult.replaceNonAllMembers leads to NPE".

See Also:
duplicate bug MONDRIAN-805

testBugMondrian756b

public void testBugMondrian756b()
Test case for bug MONDRIAN-756, "Error in RolapResult.replaceNonAllMembers leads to NPE".

See Also:
duplicate bug MONDRIAN-805

testBugMondrian805

public void testBugMondrian805()
Test case for bug MONDRIAN-805, "Two dimensions with hasAll=false fail".


testMondrianBug476_770_957

public void testMondrianBug476_770_957()
                                throws Exception
Throws:
Exception

testBugMondrian935

public void testBugMondrian935()

testPropertyWithParameterOfTimestampType

public void testPropertyWithParameterOfTimestampType()
                                              throws Exception
Test case for bug MONDRIAN-626, "DATE type Levels can cause errors with certain JDBC drivers (e.g. Oracle 5/6)".

A Parameter type of date or timestamp was causing an exception because those types were not implemented correctly.

Throws:
Exception - on error

testEsr1587

public void testEsr1587()
Tests a query that is generated by Analyzer to query members. It should only execute one SQL query, basically, "select year_id from time group by year_id order by year_id". It should definitely not join to fact table.


testMondrian1133

public void testMondrian1133()

testMondrian1197

public void testMondrian1197()
Fix for MONDRIAN-1197 Not all members were created the same. Some were using null keys, others RolapUtil.sqlNullValue. I've standardized the code with RolapUtil.sqlNullValue and added assertions to verify the change. I've also created a bunch of tests with null keys and I sort them every which way to verify the correct ordering.


testRangeSortWithNullKeys

public void testRangeSortWithNullKeys()
This is a test for ANALYZER-1259 Using the range operator on a level with null keys returned weird results. This was because of a confusion of the ordering of null keys.


Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads