dlr         02/02/19 15:06:14

  Modified:    src/test/org/apache/xmlrpc ClientServerRpcTest.java
  Log:
  Added SAX_DRIVER constant, currently setup to use
  uk.co.wilson.xml.MinML.  This now sets the SAX driver to use in
  setUp().
  
  Revision  Changes    Path
  1.8       +20 -2     xml-rpc/src/test/org/apache/xmlrpc/ClientServerRpcTest.java
  
  Index: ClientServerRpcTest.java
  ===================================================================
  RCS file: /home/cvs/xml-rpc/src/test/org/apache/xmlrpc/ClientServerRpcTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -u -r1.7 -r1.8
  --- ClientServerRpcTest.java  19 Feb 2002 22:41:37 -0000      1.7
  +++ ClientServerRpcTest.java  19 Feb 2002 23:06:14 -0000      1.8
  @@ -68,7 +68,7 @@
    * Tests XmlRpc run-time.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Daniel Rall</a>
  - * @version $Id: ClientServerRpcTest.java,v 1.7 2002/02/19 22:41:37 dlr Exp $
  + * @version $Id: ClientServerRpcTest.java,v 1.8 2002/02/19 23:06:14 dlr Exp $
    */
   public class ClientServerRpcTest
       extends TestCase 
  @@ -79,6 +79,15 @@
       private static final String HANDLER_NAME = "TestHandler";
   
       /**
  +     * The identifier or fully qualified class name of the SAX driver
  +     * to use.  This is generally <code>uk.co.wilson.xml.MinML</code>,
  +     * but could be changed to
  +     * <code>org.apache.xerces.parsers.SAXParser</code> for timing
  +     * comparisons.
  +     */
  +    private static final String SAX_DRIVER = "uk.co.wilson.xml.MinML";
  +
  +    /**
        * The number of RPCs to make for each test.
        */
       private static final int NBR_REQUESTS = 1000;
  @@ -133,11 +142,20 @@
        */
       public void setUp() 
       {
  +        XmlRpc.setDebug(true);
  +        try
  +        {
  +            XmlRpc.setDriver(SAX_DRIVER);
  +        }
  +        catch (ClassNotFoundException e)
  +        {
  +            fail(e.toString());
  +        }
  +
           // WebServer
           //webServer = new WebServer();
   
           // Server
  -        XmlRpc.setDebug(true);
           server = new XmlRpcServer();
           server.addHandler(HANDLER_NAME, new TestHandler());
           // HELP: What port and url space does this run on?
  
  
  


Reply via email to