rubys 02/02/08 10:24:21
Modified: java/samples/echo TestClient.java
Log:
Be more tolerant as not every implementation will preserve the same
level of granularity for dates.
Problem reported by Simon Fell (PocketSOAP)
Revision Changes Path
1.48 +3 -3 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.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- TestClient.java 7 Feb 2002 23:23:11 -0000 1.47
+++ TestClient.java 8 Feb 2002 18:24:21 -0000 1.48
@@ -117,7 +117,7 @@
Iterator i = keys1.iterator();
while (i.hasNext()) {
Object key = i.next();
- if (!map1.get(key).equals(map2.get(key)))
+ if (!equals(map1.get(key), map2.get(key)))
return false;
}
return true;
@@ -253,8 +253,8 @@
test("Boolean ", Boolean.TRUE);
HashMap map = new HashMap();
- map.put("stringKey", new Integer(5));
- map.put(new Date(), "string value");
+ map.put(new Integer(5), "String Value");
+ map.put("String Key", new Date());
test("Map ", map);
HashMap map2 = new HashMap();