Created
May 17, 2011 20:56
-
-
Save freynaud/977380 to your computer and use it in GitHub Desktop.
2nd method passes ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InvocCountTimeout { | |
@Test(invocationCount=5,timeOut=1000) | |
public void willFailOk() throws InterruptedException{ | |
Thread.sleep(2000); | |
} | |
@Test(invocationCount=5,threadPoolSize=5,timeOut=1000) | |
public void willPassBug() throws InterruptedException{ | |
Thread.sleep(2000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment