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:
Sebastian Bazley 2011-11-09 12:59:24 +00:00
parent f4b810ba42
commit bcc848ffc0

View File

@ -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());