mondrian.test
Class CaptionTest

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

public class CaptionTest
extends junit.framework.TestCase

Unit test special "caption" settings.

Author:
hhaas

Nested Class Summary
static class CaptionTest.MyFoodmart
          created from foodmart.xml via perl script, some captions added.
 
Constructor Summary
CaptionTest()
           
 
Method Summary
 void testDimCaption()
          set caption "Werbemedium" for nonshared dimension "Promotion Media"
 void testDimCaptionShared()
          set caption "Quadrat-Fuesse:-)" for shared dimension "Store Size in SQFT"
 void testLevelCaptionExpression()
          Tests the <CaptionExpression> element.
 void testMeasureCaption()
          set caption "Anzahl Verkauf" for measure "Unit Sales"
 
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

CaptionTest

public CaptionTest()
Method Detail

testMeasureCaption

public void testMeasureCaption()
set caption "Anzahl Verkauf" for measure "Unit Sales"


testDimCaption

public void testDimCaption()
set caption "Werbemedium" for nonshared dimension "Promotion Media"


testDimCaptionShared

public void testDimCaptionShared()
set caption "Quadrat-Fuesse:-)" for shared dimension "Store Size in SQFT"


testLevelCaptionExpression

public void testLevelCaptionExpression()
Tests the <CaptionExpression> element. The caption for [Time].[1997] should be "1997-12-31".

Test case for Bug MONDRIAN-683, "Caption expression for dimension levels missing implementation".


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