From 24bfddeb1a240ae1149d15f826262a9e13b7a2ab Mon Sep 17 00:00:00 2001 From: dsyer Date: Mon, 8 Nov 2010 14:15:28 +0000 Subject: [PATCH] BATCH-1643: fix test case --- .../item/file/mapping/BeanWrapperFieldSetMapperTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/mapping/BeanWrapperFieldSetMapperTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/mapping/BeanWrapperFieldSetMapperTests.java index 111bd2f62..9eb8b734a 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/mapping/BeanWrapperFieldSetMapperTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/file/mapping/BeanWrapperFieldSetMapperTests.java @@ -121,6 +121,7 @@ public class BeanWrapperFieldSetMapperTests { BeanWrapperFieldSetMapper mapper = new BeanWrapperFieldSetMapper(); StaticApplicationContext context = new StaticApplicationContext(); mapper.setBeanFactory(context); + mapper.setDistanceLimit(2); context.getBeanFactory().registerSingleton("bean", new TestObject()); mapper.setPrototypeBeanName("bean"); @@ -181,6 +182,7 @@ public class BeanWrapperFieldSetMapperTests { BeanWrapperFieldSetMapper mapper = new BeanWrapperFieldSetMapper(); StaticApplicationContext context = new StaticApplicationContext(); mapper.setBeanFactory(context); + mapper.setDistanceLimit(2); context.getBeanFactory().registerSingleton("bean", testNestedA); mapper.setPrototypeBeanName("bean"); @@ -223,6 +225,7 @@ public class BeanWrapperFieldSetMapperTests { StaticApplicationContext context = new StaticApplicationContext(); mapper.setBeanFactory(context); context.getBeanFactory().registerSingleton("bean", testNestedA); + mapper.setDistanceLimit(2); mapper.setPrototypeBeanName("bean"); FieldSet fieldSet = new DefaultFieldSet(new String[] { "Another dummy", "2" }, new String[] {