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

java.lang.Object
  extended by AbstractTransactionalDataSourceSpringContextTests
      extended by org.springframework.batch.core.repository.dao.AbstractJobExecutionDaoTests
Direct Known Subclasses:
JdbcJobExecutionDaoTests, MapJobExecutionDaoTests

public abstract class AbstractJobExecutionDaoTests
extends AbstractTransactionalDataSourceSpringContextTests


Constructor Summary
AbstractJobExecutionDaoTests()
           
 
Method Summary
protected abstract  JobExecutionDao getJobExecutionDao()
           
protected  void onSetUp()
           
 void testGetExecutionCount()
          Execution count increases by one with every save for the same job instance.
 void testGetLastExecution()
          Check the execution with most recent start time is returned
 void testSaveAddsIdAndVersion()
          Saving sets id to the entity.
 void testSaveAndFind()
          Save and find a job execution.
 void testUpdateExecution()
          Update and retrieve job execution - check attributes have changed as expected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJobExecutionDaoTests

public AbstractJobExecutionDaoTests()
Method Detail

getJobExecutionDao

protected abstract JobExecutionDao getJobExecutionDao()
Returns:
tested object ready for use

onSetUp

protected void onSetUp()
                throws Exception
Throws:
Exception

testSaveAndFind

public void testSaveAndFind()
Save and find a job execution.


testSaveAddsIdAndVersion

public void testSaveAddsIdAndVersion()
Saving sets id to the entity.


testGetExecutionCount

public void testGetExecutionCount()
Execution count increases by one with every save for the same job instance.


testUpdateExecution

public void testUpdateExecution()
Update and retrieve job execution - check attributes have changed as expected.


testGetLastExecution

public void testGetLastExecution()
Check the execution with most recent start time is returned



Copyright © 2008 SpringSource. All Rights Reserved.