Add timeout setting in milliseconds to ease testing.

This commit is contained in:
dsyer
2008-07-06 14:16:16 +00:00
parent 54b322dfa7
commit 3468859411
4 changed files with 27 additions and 15 deletions

View File

@@ -107,6 +107,8 @@ public class MessageOrientedStepTests {
@Test
public void testExecuteWithTimeout() throws Exception {
try {
step.setExecutionTimeout(1000);
step.setPollingInterval(100);
step.execute(jobExecution.createStepExecution(step));
fail("Expected StepExecutionTimeoutException");
}