You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by ks...@apache.org on 2002/08/09 11:03:06 UTC

cvs commit: xml-xindice/java/scratchpad/tests/src CollectionManagerTest.java XMLRPCAPITestCase.java

kstaken     2002/08/09 02:03:06

  Modified:    java/scratchpad/tests build.xml
               java/scratchpad/tests/src CollectionManagerTest.java
                        XMLRPCAPITestCase.java
  Log:
  Getting XML-RPC tests to pass. Except SetDocument which is a missing message.
  
  Revision  Changes    Path
  1.3       +1 -0      xml-xindice/java/scratchpad/tests/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-xindice/java/scratchpad/tests/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xml	11 Jun 2002 01:19:25 -0000	1.2
  +++ build.xml	9 Aug 2002 09:03:06 -0000	1.3
  @@ -84,6 +84,7 @@
       <javac srcdir="${src.dir}"
              destdir="${build.dir}"
              classpathref="project.class.path"
  +           debug="on"
              />
     </target>
   
  
  
  
  1.6       +2 -2      xml-xindice/java/scratchpad/tests/src/CollectionManagerTest.java
  
  Index: CollectionManagerTest.java
  ===================================================================
  RCS file: /home/cvs/xml-xindice/java/scratchpad/tests/src/CollectionManagerTest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- CollectionManagerTest.java	18 Jun 2002 03:36:11 -0000	1.5
  +++ CollectionManagerTest.java	9 Aug 2002 09:03:06 -0000	1.6
  @@ -149,7 +149,7 @@
         try {
            client.execute("run", badparams);
         } catch(Exception e) {
  -         assertTrue(e.getMessage().lastIndexOf("Collection name must begin with a '/'") > 0);
  +         assertTrue(e.getMessage().lastIndexOf("Required parameter 'name' not found.") > 0);
         }
   
      }
  
  
  
  1.5       +5 -4      xml-xindice/java/scratchpad/tests/src/XMLRPCAPITestCase.java
  
  Index: XMLRPCAPITestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-xindice/java/scratchpad/tests/src/XMLRPCAPITestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XMLRPCAPITestCase.java	10 Jul 2002 08:55:56 -0000	1.4
  +++ XMLRPCAPITestCase.java	9 Aug 2002 09:03:06 -0000	1.5
  @@ -79,7 +79,7 @@
      public void setUp() throws Exception {
         XmlRpc.setEncoding("UTF8");
         XmlRpc.setDriver("xerces");
  -      client = new XmlRpcClient("http://localhost:4080/RPC2");
  +      client = new XmlRpcClient("http://localhost:8080/Xindice");
   
         Hashtable message = new Hashtable();
   
  @@ -103,8 +103,9 @@
         Hashtable message = new Hashtable();
   
         message.put("message", "RemoveCollection");
  -      message.put("collection", "/" + INSTANCE_NAME + "/" + TEST_COLLECTION_NAME);
  -
  +      message.put("collection", "/" + INSTANCE_NAME );
  +      message.put("name", TEST_COLLECTION_NAME);
  +      
         Vector params = new Vector();
   
         params.addElement(message);