You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by to...@apache.org on 2005/05/27 17:56:01 UTC
cvs commit: ws-axis/java/test/types TestURI.java
tomj 2005/05/27 08:56:01
Modified: java/test/types TestURI.java
Log:
Test for bug 2015: org.apache.axis.types.URI does not compare registry authority in equals()
http://issues.apache.org/jira/browse/AXIS-2015
From Steve Green (steve.green@epok.net).
Revision Changes Path
1.2 +11 -0 ws-axis/java/test/types/TestURI.java
Index: TestURI.java
===================================================================
RCS file: /home/cvs/ws-axis/java/test/types/TestURI.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TestURI.java 3 Apr 2004 09:43:19 -0000 1.1
+++ TestURI.java 27 May 2005 15:56:01 -0000 1.2
@@ -37,4 +37,15 @@
assertEquals(uri1,uri2);
assertEquals(uri1.hashCode(),uri2.hashCode());
}
+
+ /**
+ * Bug AXIS-2015
+ */
+ public void testAxis2015() throws Exception {
+ URI uri1 = new URI("abc://@10");
+ URI uri2 = new URI("abc://@20");
+ assertFalse(uri1.equals(uri2));
+ assertFalse(uri1.hashCode() == uri2.hashCode());
+ }
+
}