IN PROGRESS - issue BATCH-7: Remove transaction synchronization and state management from input/output sources (formerly buffering)

http://jira.springframework.org/browse/BATCH-7

More Statistics removal
This commit is contained in:
dsyer
2008-01-31 14:45:39 +00:00
parent 93639e1928
commit c2ccb7ed02
14 changed files with 69 additions and 93 deletions

View File

@@ -45,7 +45,7 @@ public class StepContributionTests extends TestCase {
* Test method for
* {@link org.springframework.batch.core.domain.StepContribution#setStreamContext(StreamContext)}.
*/
public void testSetStatistics() {
public void testSetStreamContext() {
assertEquals(null, contribution.getStreamContext());
contribution.setStreamContext(new GenericStreamContext(PropertiesConverter.stringToProperties("foo=bar")));
assertEquals(1, contribution.getStreamContext().getProperties().size());

View File

@@ -198,7 +198,7 @@ public class StepExecutionTests extends TestCase {
execution.toString().indexOf("rollback") >= 0);
}
public void testStatistics() throws Exception {
public void testStreamContext() throws Exception {
assertNotNull(execution.getStreamContext());
StreamContext context = new StreamContext();
context.putString("foo", "bar");