mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-07 18:48:39 +00:00
Unnecessary Integer creation; actually wants long
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199726 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f4b810ba42
commit
bcc848ffc0
@ -65,9 +65,9 @@ public void testIsTrue2() {
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
public void testIsTrue3() {
|
||||
Validate.isTrue(true, "MSG", Integer.valueOf(6));
|
||||
Validate.isTrue(true, "MSG", 6);
|
||||
try {
|
||||
Validate.isTrue(false, "MSG", Integer.valueOf(6));
|
||||
Validate.isTrue(false, "MSG", 6);
|
||||
fail("Expecting IllegalArgumentException");
|
||||
} catch (IllegalArgumentException ex) {
|
||||
assertEquals("MSG", ex.getMessage());
|
||||
|
Loading…
x
Reference in New Issue
Block a user