org.springframework.batch.item.file
Class MultiResourceItemReaderIntegrationTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.batch.item.file.MultiResourceItemReaderIntegrationTests
All Implemented Interfaces:
junit.framework.Test

public class MultiResourceItemReaderIntegrationTests
extends junit.framework.TestCase

Tests for MultiResourceItemReader.


Constructor Summary
MultiResourceItemReaderIntegrationTests()
           
 
Method Summary
protected  void setUp()
          Setup the tested reader to read from the test resources.
 void testRead()
          Read input from start to end.
 void testReset()
          Read items with a couple of rollbacks, requiring to jump back to items from previous resources.
 void testResourceOrderingWithCustomComparator()
          Resources are ordered according to injected comparator.
 void testRestart()
          Restore from saved state.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiResourceItemReaderIntegrationTests

public MultiResourceItemReaderIntegrationTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Setup the tested reader to read from the test resources.

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testRead

public void testRead()
              throws Exception
Read input from start to end.

Throws:
Exception

testReset

public void testReset()
               throws Exception
Read items with a couple of rollbacks, requiring to jump back to items from previous resources.

Throws:
Exception

testRestart

public void testRestart()
                 throws Exception
Restore from saved state.

Throws:
Exception

testResourceOrderingWithCustomComparator

public void testResourceOrderingWithCustomComparator()
Resources are ordered according to injected comparator.



Copyright © 2008 SpringSource. All Rights Reserved.