commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r226703 - /jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RangeTest.java
Date Sun, 31 Jul 2005 23:40:56 GMT
Author: ggregory
Date: Sun Jul 31 16:40:55 2005
New Revision: 226703

URL: http://svn.apache.org/viewcvs?rev=226703&view=rev
Log:
Range unit test coverage now at 100%.

Modified:
    jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RangeTest.java

Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RangeTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RangeTest.java?rev=226703&r1=226702&r2=226703&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RangeTest.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/math/RangeTest.java
Sun Jul 31 16:40:55 2005
@@ -83,8 +83,15 @@
         RangeTestFixture r2 = new RangeTestFixture((byte) 0, (byte) 5);
         RangeTestFixture r3 = new RangeTestFixture((byte) 0, (byte) 10);
 
+        assertEquals(r1, r1);
         assertEquals(r1, r2);
+        assertEquals(r2, r2);
+        assertTrue(r1.equals(r1));
+        assertTrue(r2.equals(r2));
+        assertTrue(r3.equals(r3));
         assertFalse(r2.equals(r3));
+        assertFalse(r2.equals(null));
+        assertFalse(r2.equals("Ni!"));
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message