commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevencasw...@apache.org
Subject svn commit: r234400 - /jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharRangeTest.java
Date Mon, 22 Aug 2005 00:50:33 GMT
Author: stevencaswell
Date: Sun Aug 21 17:50:30 2005
New Revision: 234400

URL: http://svn.apache.org/viewcvs?rev=234400&view=rev
Log:
increase CharRange test coverage as reported by clover

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

Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharRangeTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharRangeTest.java?rev=234400&r1=234399&r2=234400&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharRangeTest.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/CharRangeTest.java
Sun Aug 21 17:50:30 2005
@@ -348,6 +348,15 @@
         assertEquals(true, notbd.contains(notae));
     }
     
+    public void testContainsNullArg() {
+        CharRange range = new CharRange('a');
+        try {
+            boolean contains = range.contains(null);
+        } catch(IllegalArgumentException e) {
+            assertEquals("The Range must not be null", e.getMessage());
+        }
+    }
+    
     //-----------------------------------------------------------------------    
     public void testSerialization() {
         CharRange range = new CharRange('a');



---------------------------------------------------------------------
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