1 package test.thread; 2 3 import org.testng.annotations.Test; 4 5 import test.BaseTest; 6 7 public class ThreadTest extends BaseTest { 8 9 @Test(groups = "broken", 10 description = "This can be fixed by using sets instead of lists in DynamicGraph, but more failures happen then") timeoutAndInvocationCountShouldFail()11 public void timeoutAndInvocationCountShouldFail() { 12 addClass(ThreadPoolSampleBugTest.class.getName()); 13 run(); 14 String[] passed = { 15 "shouldPass1", "shouldPass2" 16 }; 17 String[] failed = { 18 "shouldFail1", "shouldFail2" 19 }; 20 verifyTests("Passed", passed, getPassedTests()); 21 verifyTests("Failed", failed, getFailedTests()); 22 } 23 } 24