org.apache.xmlrpc.test
Class ParserTest

java.lang.Object
  extended by TestCase
      extended by org.apache.xmlrpc.test.ParserTest

public class ParserTest
extends TestCase

Test for the various parsers.


Constructor Summary
ParserTest()
           
 
Method Summary
private  org.apache.xmlrpc.parser.XmlRpcRequestParser parseRequest(java.lang.String s)
           
private  java.lang.Object parseResponse(org.xml.sax.InputSource isource)
           
private  java.lang.Object parseResponse(java.lang.String s)
           
 void testNestedObjectArrays()
          Tests, whether nested arrays can be parsed.
 void testOptionalParams()
          Tests, whether a request may omit the tag.
 void testStringType()
          Tests, whether strings can be parsed with, or without, the "string" tag.
 void testXMLRPC140()
          Test for XMLRPC-140.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserTest

public ParserTest()
Method Detail

parseResponse

private java.lang.Object parseResponse(java.lang.String s)
                                throws org.apache.xmlrpc.XmlRpcException,
                                       java.io.IOException,
                                       org.xml.sax.SAXException
Throws:
org.apache.xmlrpc.XmlRpcException
java.io.IOException
org.xml.sax.SAXException

parseResponse

private java.lang.Object parseResponse(org.xml.sax.InputSource isource)
                                throws org.apache.xmlrpc.XmlRpcException,
                                       java.io.IOException,
                                       org.xml.sax.SAXException
Throws:
org.apache.xmlrpc.XmlRpcException
java.io.IOException
org.xml.sax.SAXException

parseRequest

private org.apache.xmlrpc.parser.XmlRpcRequestParser parseRequest(java.lang.String s)
                                                           throws org.apache.xmlrpc.XmlRpcException,
                                                                  java.io.IOException,
                                                                  org.xml.sax.SAXException
Throws:
org.apache.xmlrpc.XmlRpcException
java.io.IOException
org.xml.sax.SAXException

testStringType

public void testStringType()
                    throws java.lang.Exception
Tests, whether strings can be parsed with, or without, the "string" tag.

Throws:
java.lang.Exception

testNestedObjectArrays

public void testNestedObjectArrays()
                            throws java.lang.Exception
Tests, whether nested arrays can be parsed.

Throws:
java.lang.Exception

testOptionalParams

public void testOptionalParams()
                        throws java.lang.Exception
Tests, whether a request may omit the tag.

Throws:
java.lang.Exception

testXMLRPC140

public void testXMLRPC140()
                   throws java.lang.Exception
Test for XMLRPC-140.

Throws:
java.lang.Exception