AnsweredAssumed Answered

How do i Unit test TimerBoundaryEvent?

Question asked by potgieterde on Oct 26, 2012
Latest reply on Oct 29, 2012 by frederikheremans1
Hi,

I`m a bit lost around JUnit testing a TimerBoundaryEvent? Any ideas on how to stop/wait/pause/alter date to be able to test this?

I read somewhere about
activitiRule.setCurrentTime(new Date((new Date().getTime()+1000*60*5)));

But how do i set this half way through my unit test?

Thanks
Derick

Outcomes