void function ( ) { itemReader . setLineMapper ( new PassThroughLineMapper ( ) ) ; tested . setDelegate ( itemReader ) ; tested . setComparator ( new Comparator < Resource > ( ) { @ Override public int compare ( Resource arg0 , Resource arg1 ) { return 0 ; } } ) ; tested . setResources ( new Resource [ ] { r1 , r2 , r3 , r4 , r5 } ) ; }
setup the tested reader to read from the test resources . concode_field_sep ExecutionContext ctx concode_elem_sep boolean closeCalled concode_elem_sep FlatFileItemReader<String> itemReader concode_elem_sep Resource r4 concode_elem_sep MultiResourceItemReader<String> tested concode_elem_sep Resource r2 concode_elem_sep boolean openCalled concode_elem_sep boolean updateCalled concode_elem_sep Resource r1 concode_elem_sep Resource r3 concode_elem_sep Resource r5 concode_field_sep void testMiddleResourceThrowsException concode_elem_sep void testFirstResourceThrowsExceptionOnRead concode_elem_sep String read concode_elem_sep void testStrictModeDisabled concode_elem_sep void testNoResourcesFound concode_elem_sep void testNonExistentResources concode_elem_sep void testDirectoryResources concode_elem_sep void update concode_elem_sep void testRead concode_elem_sep void testRestartAcrossResourceBoundary concode_elem_sep void setResource concode_elem_sep void testNonExistentResourcesItemStreamLifecycle concode_elem_sep void testStrictModeEnabled concode_elem_sep void testBadIOInput concode_elem_sep void testRestartAfterFailureWithoutRead concode_elem_sep void testRestartWhenStateNotSaved concode_elem_sep void testGetCurrentResource concode_elem_sep void testRestart concode_elem_sep void testGetCurrentResourceBeforeRead concode_elem_sep void testResourceOrderingWithCustomComparator concode_elem_sep void close concode_elem_sep void open