org.springframework.batch.sample
Class AbstractBatchLauncherTests

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
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractValidatingBatchLauncherTests, GracefulShutdownFunctionalTests, RestartFunctionalTests

public abstract class AbstractBatchLauncherTests
extends AbstractDependencyInjectionSpringContextTests

Abstract unit test for running functional tests by getting context locations for both the container and configuration separately and having them auto wired in by type. This allows the two to be completely separated, and remove any 'configuration coupling' between the two.

Author:
Lucas Ward

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
AbstractBatchLauncherTests()
           
 
Method Summary
protected  String[] getConfigLocations()
           
 Job getJob()
           
protected  String getJobName()
           
 void setJob(Job job)
          Public setter for the Job property.
 void setJobParameters(JobParameters jobParameters)
           
 void setLauncher(JobLauncher bootstrap)
           
 void testLaunchJob()
           
 
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, onSetUp, 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

AbstractBatchLauncherTests

public AbstractBatchLauncherTests()
Method Detail

getConfigLocations

protected String[] getConfigLocations()
Overrides:
getConfigLocations in class AbstractSingleSpringContextTests

setLauncher

public void setLauncher(JobLauncher bootstrap)

setJob

public void setJob(Job job)
Public setter for the Job property.

Parameters:
job - the job to set

getJob

public Job getJob()

getJobName

protected String getJobName()

setJobParameters

public void setJobParameters(JobParameters jobParameters)

testLaunchJob

public void testLaunchJob()
                   throws Exception
Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.