org.springframework.batch.item.file
Class FlatFileItemReaderAdvancedTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.item.file.FlatFileItemReaderAdvancedTests

public class FlatFileItemReaderAdvancedTests
extends TestCase

Tests for FlatFileItemReader - skip and restart functionality.

See Also:
FlatFileItemReaderBasicTests

Constructor Summary
FlatFileItemReaderAdvancedTests()
           
 
Method Summary
protected  void setUp()
          Create inputFile, inject mock/stub dependencies for tested object, initialize the tested object
protected  void tearDown()
          Release resources and delete the temporary file
 void testFailOnFirstChunk()
          Test skip and skipRollback functionality
 void testReset()
          Test rollback functionality
 void testRestart()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatFileItemReaderAdvancedTests

public FlatFileItemReaderAdvancedTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Create inputFile, inject mock/stub dependencies for tested object, initialize the tested object

Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Release resources and delete the temporary file

Throws:
Exception

testReset

public void testReset()
               throws Exception
Test rollback functionality

Throws:
IOException
Exception

testFailOnFirstChunk

public void testFailOnFirstChunk()
                          throws Exception
Test skip and skipRollback functionality

Throws:
IOException
Exception

testRestart

public void testRestart()
                 throws Exception
Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.