From 45c02a90e55c8b6f5d6dd119951b916c9037049f Mon Sep 17 00:00:00 2001 From: lucasward Date: Thu, 18 Oct 2007 04:01:24 +0000 Subject: [PATCH] FieldSetTests wasn't updated in the last commit. --- .../batch/io/file/support/FieldSetTests.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/infrastructure/src/test/java/org/springframework/batch/io/file/support/FieldSetTests.java b/infrastructure/src/test/java/org/springframework/batch/io/file/support/FieldSetTests.java index 1ef01a080..a91a1e2ec 100644 --- a/infrastructure/src/test/java/org/springframework/batch/io/file/support/FieldSetTests.java +++ b/infrastructure/src/test/java/org/springframework/batch/io/file/support/FieldSetTests.java @@ -176,7 +176,7 @@ public class FieldSetTests extends TestCase { } public void testReadBlankInt(){ - + //Trying to parse a blank field as an integer, but without a default //value should throw a NumberFormatException try{ @@ -186,7 +186,7 @@ public class FieldSetTests extends TestCase { catch(NumberFormatException ex){ //expected } - + try{ fieldSet.readInt("BlankInput"); fail(); @@ -194,7 +194,7 @@ public class FieldSetTests extends TestCase { catch(NumberFormatException ex){ //expected } - + } public void testReadLong() throws Exception { @@ -332,7 +332,7 @@ public class FieldSetTests extends TestCase { assertFalse(fs1.equals(fs2)); } - + public void testHashCode() throws Exception { assertEquals(fieldSet.hashCode(), new FieldSet(tokens).hashCode()); } @@ -363,7 +363,7 @@ public class FieldSetTests extends TestCase { public void testToStringNullTokens() throws Exception { fieldSet = new FieldSet(null); - assertEquals(null, fieldSet.toString()); + assertEquals("", fieldSet.toString()); } public void testProperties() throws Exception { @@ -380,9 +380,9 @@ public class FieldSetTests extends TestCase { // expected } } - + public void testPropertiesWithWhiteSpace() throws Exception{ - + assertEquals("bar", new FieldSet(new String[] { "foo", "bar " }, new String[] { "Foo", "Bar"}).getProperties().getProperty("Bar")); }