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:12:22 GMT
bloritsch    01/10/17 09:12:22

  Modified:    java/test/encoding TestArrayListConversions.java
  Log:
  Generate somewhat more helpful assertions.  and fix a readability issue
  
  Revision  Changes    Path
  1.6       +4 -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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestArrayListConversions.java	2001/10/17 16:07:41	1.5
  +++ TestArrayListConversions.java	2001/10/17 16:12:22	1.6
  @@ -40,8 +40,9 @@
         if (!(array[i].equals(iter.next()))) {
             return false;
         }
  -      return true;
       }
  +
  +    return true;
     }
   
     public void init()
  @@ -78,7 +79,7 @@
   
       Object ret = client.invoke(SERVICE_NAME, "echoVector",
                           new Object [] { l });
  -    if (!equals(l, ret)) assertEquals(l, ret);
  +    if (!equals(l, ret)) assertEquals("Echo Vector mangled the result.  Result is underneath.\n"
+ ret, l, ret);
     }
         
     public void testArrayConversion() throws Exception
  @@ -89,7 +90,7 @@
   
       Object ret = client.invoke(SERVICE_NAME, "echoArray",
                           new Object [] { v });
  -    if (!equals(v, ret)) assertEquals(v, ret);
  +    if (!equals(v, ret)) assertEquals("Echo Array mangled the result.  Result is underneath\n"
+ ret, v, ret);
     }
   
     public static void main(String [] args)
  
  
  

Mime
View raw message