BATCH-1913: add javadocs and some more convenience methods

This commit is contained in:
Dave Syer
2012-12-05 11:28:00 +00:00
parent d325250423
commit 07cce7a7e4
13 changed files with 633 additions and 98 deletions

View File

@@ -35,6 +35,7 @@ import org.springframework.batch.core.partition.support.SimplePartitioner;
import org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler;
import org.springframework.batch.core.step.JobRepositorySupport;
import org.springframework.batch.core.step.StepSupport;
import org.springframework.batch.core.step.builder.StepBuilderException;
import org.springframework.batch.core.step.item.ChunkOrientedTasklet;
import org.springframework.batch.core.step.tasklet.TaskletStep;
import org.springframework.batch.item.ItemStream;
@@ -55,7 +56,7 @@ import org.springframework.transaction.annotation.Propagation;
*/
public class StepParserStepFactoryBeanTests {
@Test(expected = IllegalStateException.class)
@Test(expected = StepBuilderException.class)
public void testNothingSet() throws Exception {
StepParserStepFactoryBean<Object, Object> fb = new StepParserStepFactoryBean<Object, Object>();
fb.getObject();
@@ -88,7 +89,7 @@ public class StepParserStepFactoryBeanTests {
assertTrue(stepOperations instanceof TaskExecutorRepeatTemplate);
}
@Test(expected = IllegalStateException.class)
@Test(expected = StepBuilderException.class)
public void testSkipLimitSet() throws Exception {
StepParserStepFactoryBean<Object, Object> fb = new StepParserStepFactoryBean<Object, Object>();
fb.setName("step");