increase CharRange test coverage as reported by clover

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@234400 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Caswell 2005-08-22 00:50:30 +00:00
parent 2390bb5c40
commit aeadf7c29c
1 changed files with 9 additions and 0 deletions

View File

@ -348,6 +348,15 @@ public void testContains_Charrange() {
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');