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:
parent
2390bb5c40
commit
aeadf7c29c
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue