mondrian.test
Class DynamicSchemaProcessorTest

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

public class DynamicSchemaProcessorTest
extends junit.framework.TestCase

Unit test DynamicSchemaProcessor. Tests availability of properties that DSP's are called, and used to modify the resulting Mondrian schema

Author:
ngoodman

Nested Class Summary
static class DynamicSchemaProcessorTest.BaseDsp
          Our base, token replacing schema processor.
static class DynamicSchemaProcessorTest.CheckJdbcPropertyDsp
          Ensures we have access to the JDBC URL.
static class DynamicSchemaProcessorTest.FoodMartCatalogDsp
          Checks to make sure our Catalog property contains our FoodMart.xml VFS URL
static class DynamicSchemaProcessorTest.ProviderTestDSP
          DSP that checks that replaces the Schema Name with the name of the Provider property
 
Field Summary
static String FRAGMENT_ONE
           
static String FRAGMENT_TWO
           
static String TEMPLATE_SCHEMA
           
 
Constructor Summary
DynamicSchemaProcessorTest()
           
 
Method Summary
 void testCheckJdbcPropertyDsp()
          Tests to ensure we have access to Connect properties in a DSP
 void testDBInfoDSP()
          Tests to ensure we have access to Connect properies in a DSP
 void testDSPBasics()
          Tests to make sure that our base DynamicSchemaProcessor works, with no replacement.
 void testFoodmartDsp()
          Tests to make sure that our base DynamicSchemaProcessor works, and Mondrian is able to parse and connect to FoodMart with it
 void testProviderTestDSP()
          Tests to ensure we have access to Connect properies in a DSP
 
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
 

Field Detail

FRAGMENT_ONE

public static final String FRAGMENT_ONE
See Also:
Constant Field Values

FRAGMENT_TWO

public static final String FRAGMENT_TWO
See Also:
Constant Field Values

TEMPLATE_SCHEMA

public static final String TEMPLATE_SCHEMA
See Also:
Constant Field Values
Constructor Detail

DynamicSchemaProcessorTest

public DynamicSchemaProcessorTest()
Method Detail

testDSPBasics

public void testDSPBasics()
Tests to make sure that our base DynamicSchemaProcessor works, with no replacement. Does not test Mondrian is able to connect with the schema definition.


testFoodmartDsp

public void testFoodmartDsp()
Tests to make sure that our base DynamicSchemaProcessor works, and Mondrian is able to parse and connect to FoodMart with it


testProviderTestDSP

public void testProviderTestDSP()
Tests to ensure we have access to Connect properies in a DSP


testDBInfoDSP

public void testDBInfoDSP()
Tests to ensure we have access to Connect properies in a DSP


testCheckJdbcPropertyDsp

public void testCheckJdbcPropertyDsp()
Tests to ensure we have access to Connect properties in a DSP


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