mondrian.xmla
Class XmlaExcelXPTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.test.FoodMartTestCase
              extended by mondrian.xmla.XmlaBaseTestCase
                  extended by mondrian.xmla.XmlaExcelXPTest
All Implemented Interfaces:
Test

public class XmlaExcelXPTest
extends XmlaBaseTestCase

Test suite for compatibility of Mondrian XMLA with Excel XP. Simba (the maker of the O2X bridge) supplied captured request/response soap messages between Excel XP and SQL Server. These form the basis of the output files in the excel_XP directory.

Version:
$Id: //open/mondrian/testsrc/main/mondrian/xmla/XmlaExcelXPTest.java#19 $
Author:
Richard M. Emberson

Nested Class Summary
(package private) static class XmlaExcelXPTest.Callback
           
 
Nested classes/interfaces inherited from class mondrian.xmla.XmlaBaseTestCase
XmlaBaseTestCase.Action, XmlaBaseTestCase.CallBack
 
Field Summary
 
Fields inherited from class mondrian.xmla.XmlaBaseTestCase
CATALOG, CATALOG_NAME_PROP, CATALOG_PROP, catalogNameUrls, CUBE_NAME_PROP, DATA_SOURCE_INFO, DATA_SOURCE_INFO_PROP, FORMAT_MULTI_DIMENSIONAL, FORMAT_PROP, HR_CUBE, LAST_SCHEMA_UPDATE_DATE, LAST_SCHEMA_UPDATE_DATE_PROP, REQUEST_TYPE_PROP, SALES_CUBE, SESSION_ID_PROP
 
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
 
Constructor Summary
XmlaExcelXPTest()
           
XmlaExcelXPTest(String name)
           
 
Method Summary
 void _test18()
           
 void _test21()
           
 void _test22()
           
 void doTest(MockHttpServletRequest req, String nos, Properties props)
           
 void doTest(String nos, Properties props)
           
protected  String generateExpectedString(String nos, Properties props)
           
protected  String generateRequestString(String nos, Properties props)
           
protected  DiffRepository getDiffRepos()
           
protected  String getOutFileName(String nos)
           
protected  Class<? extends XmlaRequestCallback> getServletCallbackClass()
           
protected  String getSessionId(XmlaBaseTestCase.Action action)
          Creates, retrieves or clears the session id for this test.
protected  void helperTest(String nos, boolean doSessionId)
           
protected  void helperTestExpect(String nos, boolean doSessionId)
           
 void test01()
           
 void test02()
           
 void test03()
           
 void test04()
           
 void test05()
           
 void test06()
           
 void test07()
           
 void test08()
           
 void test09()
           
 void test10()
           
 void test11()
           
 void test12()
           
 void test13()
           
 void test14()
           
 void test15()
           
 void test16()
           
 void test17()
           
 void test19()
           
 void test20()
           
 void test23()
           
 void test24()
           
 void testExpect01()
           
 void testExpect02()
           
 void testExpect03()
           
 void testExpect04()
           
 void testExpect05()
           
 void testExpect06()
           
protected  void validate(byte[] bytes, Document expectedDoc)
           
 
Methods inherited from class mondrian.xmla.XmlaBaseTestCase
clearServlet, doTest, doTest, doTestInline, doTestInline, doTests, fileToDocument, fileToString, filter, getCatalogNameUrls, getDefaultRequestProperties, getServlet, getSessionId, replaceLastSchemaUpdateDate
 
Methods inherited from class mondrian.test.FoodMartTestCase
allMember, assertAxisReturns, assertAxisThrows, assertBooleanExprReturns, assertExprReturns, assertExprThrows, assertQueriesReturnSimilarResults, assertQueryReturns, assertQueryThrows, assertSize, cubeByName, execute, executeExpr, executeQuery, executeSingletonAxis, genderMembersIncludingAll, getConnection, getDimensionWithName, getTestContext, getTestContext, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, tearDown, warehouseMembersCanadaMexicoUsa
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlaExcelXPTest

public XmlaExcelXPTest()

XmlaExcelXPTest

public XmlaExcelXPTest(String name)
Method Detail

getSessionId

protected String getSessionId(XmlaBaseTestCase.Action action)
Description copied from class: XmlaBaseTestCase
Creates, retrieves or clears the session id for this test.

Specified by:
getSessionId in class XmlaBaseTestCase
Parameters:
action - Action to perform
Returns:
Session id for create, query; null for clear

generateExpectedString

protected String generateExpectedString(String nos,
                                        Properties props)
                                 throws Exception
Throws:
Exception

getServletCallbackClass

protected Class<? extends XmlaRequestCallback> getServletCallbackClass()
Specified by:
getServletCallbackClass in class XmlaBaseTestCase

getDiffRepos

protected DiffRepository getDiffRepos()
Specified by:
getDiffRepos in class XmlaBaseTestCase

test01

public void test01()
            throws Exception
Throws:
Exception

test02

public void test02()
            throws Exception
Throws:
Exception

test03

public void test03()
            throws Exception
Throws:
Exception

test04

public void test04()
            throws Exception
Throws:
Exception

test05

public void test05()
            throws Exception
Throws:
Exception

test06

public void test06()
            throws Exception
Throws:
Exception

test07

public void test07()
            throws Exception
Throws:
Exception

test08

public void test08()
            throws Exception
Throws:
Exception

test09

public void test09()
            throws Exception
Throws:
Exception

test10

public void test10()
            throws Exception
Throws:
Exception

test11

public void test11()
            throws Exception
Throws:
Exception

test12

public void test12()
            throws Exception
Throws:
Exception

test13

public void test13()
            throws Exception
Throws:
Exception

test14

public void test14()
            throws Exception
Throws:
Exception

test15

public void test15()
            throws Exception
Throws:
Exception

test16

public void test16()
            throws Exception
Throws:
Exception

test17

public void test17()
            throws Exception
Throws:
Exception

_test18

public void _test18()
             throws Exception
Throws:
Exception

test19

public void test19()
            throws Exception
Throws:
Exception

test20

public void test20()
            throws Exception
Throws:
Exception

_test21

public void _test21()
             throws Exception
Throws:
Exception

_test22

public void _test22()
             throws Exception
Throws:
Exception

test23

public void test23()
            throws Exception
Throws:
Exception

test24

public void test24()
            throws Exception
Throws:
Exception

helperTest

protected void helperTest(String nos,
                          boolean doSessionId)
                   throws Exception
Throws:
Exception

testExpect01

public void testExpect01()
                  throws Exception
Throws:
Exception

testExpect02

public void testExpect02()
                  throws Exception
Throws:
Exception

testExpect03

public void testExpect03()
                  throws Exception
Throws:
Exception

testExpect04

public void testExpect04()
                  throws Exception
Throws:
Exception

testExpect05

public void testExpect05()
                  throws Exception
Throws:
Exception

testExpect06

public void testExpect06()
                  throws Exception
Throws:
Exception

helperTestExpect

protected void helperTestExpect(String nos,
                                boolean doSessionId)
                         throws Exception
Throws:
Exception

doTest

public void doTest(MockHttpServletRequest req,
                   String nos,
                   Properties props)
            throws Exception
Throws:
Exception

doTest

public void doTest(String nos,
                   Properties props)
            throws Exception
Throws:
Exception

validate

protected void validate(byte[] bytes,
                        Document expectedDoc)
                 throws Exception
Throws:
Exception

generateRequestString

protected String generateRequestString(String nos,
                                       Properties props)
                                throws Exception
Throws:
Exception

getOutFileName

protected String getOutFileName(String nos)

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