org.springframework.batch.sample
Class SkipSampleFunctionalTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.test.ConditionalTestCase
              extended by org.springframework.test.AbstractSpringContextTests
                  extended by org.springframework.test.AbstractSingleSpringContextTests
                      extended by org.springframework.test.AbstractDependencyInjectionSpringContextTests
                          extended by org.springframework.batch.sample.AbstractBatchLauncherTests
                              extended by org.springframework.batch.sample.AbstractValidatingBatchLauncherTests
                                  extended by org.springframework.batch.sample.SkipSampleFunctionalTests
All Implemented Interfaces:
junit.framework.Test

public class SkipSampleFunctionalTests
extends AbstractValidatingBatchLauncherTests

Error is encountered during writing - transaction is rolled back and the error item is skipped on second attempt to process the chunk.

Author:
Robert Kasanicky

Field Summary
 
Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO
 
Fields inherited from class org.springframework.test.AbstractSingleSpringContextTests
applicationContext
 
Fields inherited from class org.springframework.test.ConditionalTestCase
logger
 
Constructor Summary
SkipSampleFunctionalTests()
           
 
Method Summary
protected  void onSetUp()
           
 void setJdbcTemplate(JdbcTemplate jdbcTemplate)
           
 void setWriter(org.springframework.batch.sample.item.writer.ItemTrackingItemWriter writer)
           
protected  void validatePostConditions()
          Make sure job did what it was expected to do.
 
Methods inherited from class org.springframework.batch.sample.AbstractValidatingBatchLauncherTests
testLaunchJob, validatePreConditions
 
Methods inherited from class org.springframework.batch.sample.AbstractBatchLauncherTests
getConfigLocations, getJob, getJobName, setJob, setJobParameters, setLauncher
 
Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables
 
Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests
contextKey, createApplicationContext, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, onTearDown, prepareApplicationContext, setDirty, setUp, tearDown
 
Methods inherited from class org.springframework.test.AbstractSpringContextTests
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty
 
Methods inherited from class org.springframework.test.ConditionalTestCase
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBare
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SkipSampleFunctionalTests

public SkipSampleFunctionalTests()
Method Detail

setWriter

public void setWriter(org.springframework.batch.sample.item.writer.ItemTrackingItemWriter writer)

setJdbcTemplate

public void setJdbcTemplate(JdbcTemplate jdbcTemplate)

onSetUp

protected void onSetUp()
                throws Exception
Overrides:
onSetUp in class AbstractSingleSpringContextTests
Throws:
Exception

validatePostConditions

protected void validatePostConditions()
                               throws Exception
Description copied from class: AbstractValidatingBatchLauncherTests
Make sure job did what it was expected to do.

Specified by:
validatePostConditions in class AbstractValidatingBatchLauncherTests
Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.