Skip to content Skip to sidebar Skip to footer

How To Test "timer Code" In A Gwttestcase?

I am writing code using GWT, and I have created a java.util.Timer emulation, which I could like to test. In Java, I would create a Timer, fire a task on it, wait until the task was

Solution 1:

Thanks to a comment for @ColinAlworth, which basically answered this question in a comment on another question, I found there is support for testing timers: GWTTestCase.delayTestFinish(int timeoutMillis) + finishTest()


Post a Comment for "How To Test "timer Code" In A Gwttestcase?"