BATCH-1837 Spring 3 Compatibility

Update profile to Spring 3.0.7; fix compile issues in 2
tests.
This commit is contained in:
Gary Russell
2012-02-21 19:53:49 -05:00
parent ffc09f6468
commit 1ce4cb1e95
3 changed files with 5 additions and 5 deletions

View File

@@ -88,8 +88,8 @@ public class InlineItemHandlerParserTests {
"org/springframework/batch/core/configuration/xml/InlineItemHandlerWithStepScopeParserTests-context.xml");
StepSynchronizationManager.register(new StepExecution("step", new JobExecution(123L)));
@SuppressWarnings("unchecked")
Map<String,ItemReader<?>> readers = context.getBeansOfType(ItemReader.class);
@SuppressWarnings({ "unchecked", "rawtypes" })
Map<String,ItemReader> readers = context.getBeansOfType(ItemReader.class);
// Should be 2 each (proxy and target) for the two readers in the steps defined
assertEquals(4, readers.size());
// System.err.println(readers);