org.springframework.batch.core.job
Class SimpleJobTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.core.job.SimpleJobTests

public class SimpleJobTests
extends TestCase

Tests for DefaultJobLifecycle. MapJobDao and MapStepExecutionDao are used instead of a mock repository to test that status is being stored correctly.

Author:
Lucas Ward

Constructor Summary
SimpleJobTests()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testExecutionContextIsSet()
           
 void testExitStatusReturned()
           
 void testFailed()
           
 void testFailedWithError()
           
 void testFailedWithListener()
           
 void testInterrupted()
           
 void testInterruptWithListener()
           
 void testNoSteps()
           
 void testNotExecutedIfAlreadyStopped()
           
 void testRestart()
           
 void testRunNormally()
           
 void testRunNormallyWithListener()
           
 void testRunWithSimpleStepExecutor()
           
 void testStepShouldNotStart()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleJobTests

public SimpleJobTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

testExitStatusReturned

public void testExitStatusReturned()
                            throws JobExecutionException
Throws:
JobExecutionException

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception

testRunNormally

public void testRunNormally()
                     throws Exception
Throws:
Exception

testRunNormallyWithListener

public void testRunNormallyWithListener()
                                 throws Exception
Throws:
Exception

testRunWithSimpleStepExecutor

public void testRunWithSimpleStepExecutor()
                                   throws Exception
Throws:
Exception

testExecutionContextIsSet

public void testExecutionContextIsSet()
                               throws Exception
Throws:
Exception

testInterrupted

public void testInterrupted()
                     throws Exception
Throws:
Exception

testFailed

public void testFailed()
                throws Exception
Throws:
Exception

testFailedWithListener

public void testFailedWithListener()
                            throws Exception
Throws:
Exception

testFailedWithError

public void testFailedWithError()
                         throws Exception
Throws:
Exception

testStepShouldNotStart

public void testStepShouldNotStart()
                            throws Exception
Throws:
Exception

testNoSteps

public void testNoSteps()
                 throws Exception
Throws:
Exception

testNotExecutedIfAlreadyStopped

public void testNotExecutedIfAlreadyStopped()
                                     throws Exception
Throws:
Exception

testRestart

public void testRestart()
                 throws Exception
Throws:
Exception

testInterruptWithListener

public void testInterruptWithListener()
                               throws Exception
Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.