From f1d2999aa20933ecbba1da6dc554cda624184e98 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Wed, 27 Mar 2013 16:00:38 +0000 Subject: [PATCH] Fix test failure comments git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1461679 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/commons/lang3/math/NumberUtilsTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java b/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java index 7e18b7af8..4e2139f17 100644 --- a/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java @@ -285,7 +285,7 @@ public void testCreateFloat() { protected void testCreateFloatFailure(final String str) { try { final Float value = NumberUtils.createFloat(str); - fail("createFloat(blank) failed: " + value); + fail("createFloat() should have failed: " + value); } catch (final NumberFormatException ex) { // empty } @@ -305,7 +305,7 @@ public void testCreateDouble() { protected void testCreateDoubleFailure(final String str) { try { final Double value = NumberUtils.createDouble(str); - fail("createDouble(blank) failed: " + value); + fail("createDouble() should have failed: " + value); } catch (final NumberFormatException ex) { // empty } @@ -325,7 +325,7 @@ public void testCreateInteger() { protected void testCreateIntegerFailure(final String str) { try { final Integer value = NumberUtils.createInteger(str); - fail("createInteger(blank) failed: " + value); + fail("createInteger() should have failed: " + value); } catch (final NumberFormatException ex) { // empty } @@ -345,7 +345,7 @@ public void testCreateLong() { protected void testCreateLongFailure(final String str) { try { final Long value = NumberUtils.createLong(str); - fail("createLong(blank) failed: " + value); + fail("createLong() should have failed: " + value); } catch (final NumberFormatException ex) { // empty } @@ -377,7 +377,7 @@ public void testCreateBigInteger() { protected void testCreateBigIntegerFailure(final String str) { try { final BigInteger value = NumberUtils.createBigInteger(str); - fail("createBigInteger(blank) failed: " + value); + fail("createBigInteger() should have failed: " + value); } catch (final NumberFormatException ex) { // empty } @@ -403,7 +403,7 @@ public void testCreateBigDecimal() { protected void testCreateBigDecimalFailure(final String str) { try { final BigDecimal value = NumberUtils.createBigDecimal(str); - fail("createBigDecimal(blank) failed: " + value); + fail("createBigDecimal() should have failed: " + value); } catch (final NumberFormatException ex) { // empty }