Demonstrating Test-Driven Development and Evolutionary Design in the long run
Download as MP4
Episode Archive
Would a Timeout rule be a better alternative to @Test(timeout=...)? I personally always seem to forget those @Test arguments...@Rulepublic Timeout timeout = new Timeout(1000);
True. I wasn't aware of it or had forgotten about that the Timeout rule. Under the covers they both use the same mechanism, so the rule seems preferable due to less duplication.
Would a Timeout rule be a better alternative to @Test(timeout=...)? I personally always seem to forget those @Test arguments...
ReplyDelete@Rule
public Timeout timeout = new Timeout(1000);
True. I wasn't aware of it or had forgotten about that the Timeout rule. Under the covers they both use the same mechanism, so the rule seems preferable due to less duplication.
ReplyDelete