org.springframework.batch.core.repository.dao
Class AbstractStepExecutionDaoTests

java.lang.Object
  extended by AbstractTransactionalDataSourceSpringContextTests
      extended by org.springframework.batch.core.repository.dao.AbstractStepExecutionDaoTests
Direct Known Subclasses:
JdbcStepExecutionDaoTests, MapStepExecutionDaoTests

public abstract class AbstractStepExecutionDaoTests
extends AbstractTransactionalDataSourceSpringContextTests

Tests for StepExecutionDao implementations.

See Also:
getStepExecutionDao()

Constructor Summary
AbstractStepExecutionDaoTests()
           
 
Method Summary
protected abstract  JobRepository getJobRepository()
           
protected abstract  StepExecutionDao getStepExecutionDao()
           
protected  void onSetUp()
           
 void testConcurrentModificationException()
          Exception should be raised when the version of update argument doesn't match the version of persisted entity.
 void testGetForNotExistingJobExecution()
           
 void testSaveAndFindContext()
           
 void testSaveAndFindExecution()
           
 void testSaveExecutionAssignsIdAndVersion()
           
 void testSaveExecutionWithIdAlreadySet()
          To-be-saved execution must not already have an id.
 void testSaveExecutionWithVersionAlreadySet()
          To-be-saved execution must not already have a version.
 void testStoreInteger()
           
 void testUpdateContext()
           
 void testUpdateExecution()
          Update and retrieve updated StepExecution - make sure the update is reflected as expected and version number has been incremented
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStepExecutionDaoTests

public AbstractStepExecutionDaoTests()
Method Detail

getStepExecutionDao

protected abstract StepExecutionDao getStepExecutionDao()
Returns:
StepExecutionDao implementation ready for use.

getJobRepository

protected abstract JobRepository getJobRepository()
Returns:
JobRepository that uses the stepExecution dao.

onSetUp

protected void onSetUp()
                throws Exception
Throws:
Exception

testSaveExecutionAssignsIdAndVersion

public void testSaveExecutionAssignsIdAndVersion()
                                          throws Exception
Throws:
Exception

testSaveAndFindExecution

public void testSaveAndFindExecution()

testGetForNotExistingJobExecution

public void testGetForNotExistingJobExecution()

testSaveExecutionWithIdAlreadySet

public void testSaveExecutionWithIdAlreadySet()
To-be-saved execution must not already have an id.


testSaveExecutionWithVersionAlreadySet

public void testSaveExecutionWithVersionAlreadySet()
To-be-saved execution must not already have a version.


testUpdateExecution

public void testUpdateExecution()
Update and retrieve updated StepExecution - make sure the update is reflected as expected and version number has been incremented


testSaveAndFindContext

public void testSaveAndFindContext()

testUpdateContext

public void testUpdateContext()

testConcurrentModificationException

public void testConcurrentModificationException()
Exception should be raised when the version of update argument doesn't match the version of persisted entity.


testStoreInteger

public void testStoreInteger()


Copyright © 2008 SpringSource. All Rights Reserved.