glyn        02/02/21 06:58:41

  Modified:    java/samples/echo TestClient.java
  Log:
  Add missing half of map comparison logic.
  
  Revision  Changes    Path
  1.55      +10 -0     xml-axis/java/samples/echo/TestClient.java
  
  Index: TestClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/echo/TestClient.java,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- TestClient.java   20 Feb 2002 18:59:20 -0000      1.54
  +++ TestClient.java   21 Feb 2002 14:58:41 -0000      1.55
  @@ -127,9 +127,19 @@
              Set keys1 = map1.keySet();
              Set keys2 = map2.keySet();
              if (!(keys1.equals(keys2))) return false;
  +
  +           // Check map1 is a subset of map2.
              Iterator i = keys1.iterator();
              while (i.hasNext()) {
                  Object key = i.next();
  +               if (!equals(map1.get(key), map2.get(key)))
  +                   return false;
  +           }
  +
  +           // Check map2 is a subset of map1.
  +           Iterator j = keys2.iterator();
  +           while (j.hasNext()) {
  +               Object key = j.next();
                  if (!equals(map1.get(key), map2.get(key)))
                      return false;
              }
  
  
  


Reply via email to