|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbstractTransactionalDataSourceSpringContextTests org.springframework.batch.core.repository.dao.AbstractStepExecutionDaoTests
public abstract class AbstractStepExecutionDaoTests
Tests for StepExecutionDao
implementations.
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 |
---|
public AbstractStepExecutionDaoTests()
Method Detail |
---|
protected abstract StepExecutionDao getStepExecutionDao()
StepExecutionDao
implementation ready for use.protected abstract JobRepository getJobRepository()
JobRepository
that uses the stepExecution dao.protected void onSetUp() throws Exception
Exception
public void testSaveExecutionAssignsIdAndVersion() throws Exception
Exception
public void testSaveAndFindExecution()
public void testGetForNotExistingJobExecution()
public void testSaveExecutionWithIdAlreadySet()
public void testSaveExecutionWithVersionAlreadySet()
public void testUpdateExecution()
public void testSaveAndFindContext()
public void testUpdateContext()
public void testConcurrentModificationException()
public void testStoreInteger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |