diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/io/file/transform/LineAggregatorItemTransformerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/io/file/transform/LineAggregatorItemTransformerTests.java index c8e5267fc..e593ac543 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/io/file/transform/LineAggregatorItemTransformerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/io/file/transform/LineAggregatorItemTransformerTests.java @@ -57,8 +57,8 @@ public class LineAggregatorItemTransformerTests extends TestCase { public void testTransformWrongType() throws Exception { try { transformer.transform("foo"); - fail("Expected ClassCastException"); - } catch (ClassCastException e) { + fail("Expected ConversionException"); + } catch (ConversionException e) { // Expected }