assertTrue("RunTask.cancel() failed!",(timeSpan2>timeSpan1));
assertTrue("RunTask.cancel() failed!",(timeSpan3>timeSpan1)); assertTrue("RunTask.cancel(signal) failed!",(timeSpan3>timeSpan2));
	public void testCancel(){		report_design=INPUT+"pages9.rptdesign";		String fileDocument=OUTPUT+"cancel_pages9.rptdocument";		long bTime,eTime,timeSpan1,timeSpan2;		try{			runnable=engine.openReportDesign(report_design);			IRunTask task=engine.createRunTask(runnable);			CancelTask cancelThread=new CancelTask("cancelThread",task);			cancelThread.start( );			bTime=System.currentTimeMillis( );			task.run(fileDocument);			eTime=System.currentTimeMillis( );			task.close();			timeSpan1=eTime-bTime;						task=engine.createRunTask(runnable);			bTime=System.currentTimeMillis( );			task.run(fileDocument);			eTime=System.currentTimeMillis( );			task.close( );			timeSpan2=eTime-bTime;						removeFile(fileDocument);						assertTrue("RunTask.cancel() failed!",(timeSpan2>timeSpan1));					}catch(EngineException ee){			ee.printStackTrace();			//assertTrue("Failed to generate document for "+ee.getLocalizedMessage(),false);		}	}