RESOLVED - BATCH-414: consistent handling of empty input by ItemReaders

renamed NoWorkFoundListener to NoWorkFoundStepExecutionListener
This commit is contained in:
robokaso
2008-07-01 08:38:59 +00:00
parent cf37f2e31f
commit 566fc6e5fc
2 changed files with 6 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ import org.springframework.batch.repeat.ExitStatus;
*
* @author Robert Kasanicky
*/
public class NoWorkFoundListener extends StepExecutionListenerSupport {
public class NoWorkFoundStepExecutionListener extends StepExecutionListenerSupport {
public ExitStatus afterStep(StepExecution stepExecution) {
if (stepExecution.getItemCount().intValue() == 0) {

View File

@@ -22,9 +22,12 @@ import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.item.NoWorkFoundException;
public class NoWorkFoundListenerTests extends TestCase {
/**
* Tests for {@link NoWorkFoundStepExecutionListener}.
*/
public class NoWorkFoundStepExecutionListenerTests extends TestCase {
private NoWorkFoundListener tested = new NoWorkFoundListener();
private NoWorkFoundStepExecutionListener tested = new NoWorkFoundStepExecutionListener();
/**
* If item count is zero exception is thrown