diff --git a/docs/src/site/docbook/reference/testing.xml b/docs/src/site/docbook/reference/testing.xml
index 4ec5fa4aa..9fcab4f1e 100644
--- a/docs/src/site/docbook/reference/testing.xml
+++ b/docs/src/site/docbook/reference/testing.xml
@@ -81,12 +81,30 @@
simpleJdbcTemplate.update("insert into CUSTOMER values (?, 0, ?, 100000)", i, "customer" + i);
}
- JobExecution jobExecution = this.launchJob();
+ JobExecution jobExecution = this.launchJob();
Assert.assertEquals("COMPLETED", jobExecution.getExitStatus());
}
}
+
+
+
+
+ Testing Individual Steps
+
+ For complex batch jobs, test cases in the end-to-end tesing approach
+ may become unmanageable. It these cases, it may be more useful to have
+ test cases to test individual steps on their own. The
+ AbstractJobTests class contains a method
+ launchStep that takes a step name and runs just
+ that particular Step. This approach allows for more
+ targeted tests by allowing the test to set up data for just that step and
+ to validate its results directly.
+
+
+ JobExecution jobExecution = this.launchStep("loadFileStep");
+