org.springframework.batch.core.repository.support
Class SimpleJobRepositoryTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.core.repository.support.SimpleJobRepositoryTests

public class SimpleJobRepositoryTests
extends TestCase

Test SimpleJobRepository. The majority of test cases are tested using EasyMock, however, there were some issues with using it for the stepExecutionDao when testing finding or creating steps, so an actual mock class had to be written.

Author:
Lucas Ward

Constructor Summary
SimpleJobRepositoryTests()
           
 
Method Summary
 void setUp()
           
 void testSaveOrUpdateInvalidJobExecution()
           
 void testSaveOrUpdateStepExecutionException()
           
 void testSaveOrUpdateValidJobExecution()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleJobRepositoryTests

public SimpleJobRepositoryTests()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

testSaveOrUpdateInvalidJobExecution

public void testSaveOrUpdateInvalidJobExecution()

testSaveOrUpdateValidJobExecution

public void testSaveOrUpdateValidJobExecution()
                                       throws Exception
Throws:
Exception

testSaveOrUpdateStepExecutionException

public void testSaveOrUpdateStepExecutionException()


Copyright © 2008 SpringSource. All Rights Reserved.