org.springframework.batch.core.step.tasklet
Class TaskletStepTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.core.step.tasklet.TaskletStepTests

public class TaskletStepTests
extends TestCase


Constructor Summary
TaskletStepTests()
           
 
Method Summary
protected  void setUp()
           
 void testExceptionError()
           
 void testExceptionExecution()
           
 void testFailureExecution()
           
 void testJobInterrupted()
          When job is interrupted the JobInterruptedException should be propagated up.
 void testRepositoryMandatory()
           
 void testStepFailureInAfterStepCallback()
          Exception in StepExecutionListener.afterStep(StepExecution) causes step to fail.
 void testSuccessfulExecution()
           
 void testSuccessfulExecutionWithExecutionContext()
           
 void testSuccessfulExecutionWithFailureOnSaveOfExecutionContext()
           
 void testSuccessfulExecutionWithListener()
           
 void testSuccessfulExecutionWithStepContext()
           
 void testTaskletMandatory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskletStepTests

public TaskletStepTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

testTaskletMandatory

public void testTaskletMandatory()
                          throws Exception
Throws:
Exception

testRepositoryMandatory

public void testRepositoryMandatory()
                             throws Exception
Throws:
Exception

testSuccessfulExecution

public void testSuccessfulExecution()
                             throws Exception
Throws:
Exception

testSuccessfulExecutionWithStepContext

public void testSuccessfulExecutionWithStepContext()
                                            throws Exception
Throws:
Exception

testSuccessfulExecutionWithExecutionContext

public void testSuccessfulExecutionWithExecutionContext()
                                                 throws Exception
Throws:
Exception

testSuccessfulExecutionWithFailureOnSaveOfExecutionContext

public void testSuccessfulExecutionWithFailureOnSaveOfExecutionContext()
                                                                throws Exception
Throws:
Exception

testFailureExecution

public void testFailureExecution()
                          throws Exception
Throws:
Exception

testSuccessfulExecutionWithListener

public void testSuccessfulExecutionWithListener()
                                         throws Exception
Throws:
Exception

testExceptionExecution

public void testExceptionExecution()
                            throws JobInterruptedException,
                                   UnexpectedJobExecutionException
Throws:
JobInterruptedException
UnexpectedJobExecutionException

testExceptionError

public void testExceptionError()
                        throws JobInterruptedException,
                               UnexpectedJobExecutionException
Throws:
JobInterruptedException
UnexpectedJobExecutionException

testJobInterrupted

public void testJobInterrupted()
                        throws Exception
When job is interrupted the JobInterruptedException should be propagated up.

Throws:
Exception

testStepFailureInAfterStepCallback

public void testStepFailureInAfterStepCallback()
                                        throws JobInterruptedException
Exception in StepExecutionListener.afterStep(StepExecution) causes step to fail.

Throws:
JobInterruptedException


Copyright © 2008 SpringSource. All Rights Reserved.