axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: ws-axis/java/test/types TestURI.java
Date Fri, 27 May 2005 15:56:01 GMT
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());
  +    }
  +
   }
  
  
  

Mime
View raw message