org.springframework.batch.core.job
Class SimpleJobTests
java.lang.Object
TestCase
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleJobTests
public SimpleJobTests()
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.