You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bl...@apache.org on 2001/10/17 18:07:41 UTC

cvs commit: xml-axis/java/test/encoding TestArrayListConversions.java

bloritsch    01/10/17 09:07:41

  Modified:    java/test/encoding TestArrayListConversions.java
  Log:
  Generate somewhat more helpful assertions.  and fix a readability issue
  
  Revision  Changes    Path
  1.5       +7 -3      xml-axis/java/test/encoding/TestArrayListConversions.java
  
  Index: TestArrayListConversions.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/encoding/TestArrayListConversions.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestArrayListConversions.java	2001/08/28 16:00:44	1.4
  +++ TestArrayListConversions.java	2001/10/17 16:07:41	1.5
  @@ -36,8 +36,12 @@
       Object [] array = (Object [])obj;
       Iterator iter = list.iterator();
   
  -    for (int i=0; i < array.length; i++)
  -      if (!(array[i].equals(iter.next()))) return false;    return true;
  +    for (int i=0; i < array.length; i++) {
  +      if (!(array[i].equals(iter.next()))) {
  +          return false;
  +      }
  +      return true;
  +    }
     }
   
     public void init()
  @@ -62,7 +66,7 @@
       v.addElement("This'll be a SOAP Array and then a LinkedList!");
       Object ret = client.invoke(SERVICE_NAME, "echoLinkedList",
                                  new Object [] { v });
  -    if (!equals(v, ret)) assertEquals(v, ret);
  +    if (!equals(v, ret)) assertEquals("Echo LinkedList mangled the result.  Result is underneath.\n" + ret, v, ret);
     }
     
     public void testLinkedListConversion() throws Exception