Trigger trigger = new DelayedTrigger( new long[] {100, 100, 100, 100, 100, 100, 100, 100} );
HelloWorldJobContext ctx = new HelloWorldJobContext( "hello world", timeService);
ctx.setLimit( 3 );
timeService.scheduleJob( new HelloWorldJob(), ctx, trigger);
Thread.sleep( 1000 );
timeService.shutdown();
assertEquals( 5, ctx.getList().size() );
}
public static class HelloWorldJob implements Job {
public void execute(JobContext c) {