Package mondrian.xmla

Class XmlaErrorTest

  • All Implemented Interfaces:
    XmlaConstants

    public class XmlaErrorTest
    extends XmlaBaseTestCase
    implements XmlaConstants
    Test of the XMLA Fault generation - errors occur/are-detected in in Mondrian XMLA and a SOAP Fault is returned.

    There is a set of tests dealing with Authorization and HTTP Header Expect and Continue dialog. These are normally done at the webserver level and can be removed here if desired. (I wrote them before I realized that Mondrian XMLA would not handle any Authorization issues if it were in a webserver.)

    Author:
    Richard M. Emberson
    • Field Detail

      • doAuthorization

        static boolean doAuthorization
      • user

        static java.lang.String user
      • password

        static java.lang.String password
    • Constructor Detail

      • XmlaErrorTest

        public XmlaErrorTest()
      • XmlaErrorTest

        public XmlaErrorTest​(java.lang.String name)
    • Method Detail

      • getChildElements

        static org.w3c.dom.Element[] getChildElements​(org.w3c.dom.Node node)
      • getCharacterData

        static org.w3c.dom.CharacterData getCharacterData​(org.w3c.dom.Node node)
      • getNodeContent

        static java.lang.String getNodeContent​(org.w3c.dom.Node n)
      • setUp

        protected void setUp()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • tearDown

        protected void tearDown()
                         throws java.lang.Exception
        Overrides:
        tearDown in class XmlaBaseTestCase
        Throws:
        java.lang.Exception
      • testJunk

        public void testJunk()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadXml01

        public void testBadXml01()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadXml02

        public void testBadXml02()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadAction01

        public void testBadAction01()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadAction02

        public void testBadAction02()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadAction03

        public void testBadAction03()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadSoap01

        public void testBadSoap01()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadSoap02

        public void testBadSoap02()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAuth01

        public void testAuth01()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAuth02

        public void testAuth02()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAuth03

        public void testAuth03()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAuth04

        public void testAuth04()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAuth05

        public void testAuth05()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadHeader01

        public void testBadHeader01()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody01

        public void testBadBody01()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody02

        public void testBadBody02()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody03

        public void testBadBody03()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody04

        public void testBadBody04()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody05

        public void testBadBody05()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody06

        public void testBadBody06()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody07

        public void testBadBody07()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody08

        public void testBadBody08()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody09

        public void testBadBody09()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody10

        public void testBadBody10()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody11

        public void testBadBody11()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody12

        public void testBadBody12()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody13

        public void testBadBody13()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody14

        public void testBadBody14()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBadBody15

        public void testBadBody15()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • doTest

        protected void doTest​(MockHttpServletRequest req,
                              mondrian.xmla.XmlaErrorTest.Fault expectedFault)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • doTest

        protected void doTest​(mondrian.xmla.XmlaErrorTest.Fault expectedFault)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • processResults

        protected void processResults​(byte[] results,
                                      mondrian.xmla.XmlaErrorTest.Fault expectedFault)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getSessionId

        protected java.lang.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