future.cancel( false );
ThreadKit.sleep( 2000 ); // wait 2 more seconds
// Morph the times so they're relative to the start time (for easier viewing)
runner.run_times.transformValues( new TLongFunction() {
@Override public long execute( long value ) {
return value - start_time;
}
} );
assertEquals( "Run times: " + runner.run_times, 2, runner.run_times.size() );