axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-axis/java/test/encoding TestArrayListConversions.java
Date Wed, 17 Oct 2001 16:07:41 GMT
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
  
  
  

Mime
View raw message