From: Jeff M. <cus...@us...> - 2002-03-28 18:16:58
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/test In directory usw-pr-cvs1:/tmp/cvs-serv6890/core/com/mockobjects/test Modified Files: TestNull.java Log Message: More documentaion changes from Francois Beausoleil Index: TestNull.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/test/TestNull.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- TestNull.java 22 Feb 2002 10:28:44 -0000 1.1 +++ TestNull.java 28 Mar 2002 18:16:54 -0000 1.2 @@ -29,6 +29,10 @@ assertEquals("Should be same value", new Null("one"), new Null("two")); assertEquals("Should be same hashCode", new Null("one").hashCode(), new Null("two").hashCode()); + + // Compare with other objects to assert that they are not equal + assertEquals("Not equal to something else", false, new Null("one").equals("one")); + assertEquals("Not equal to something else", false, new Null().equals(new Integer(2))); } public void testDescription() { |