1package test.timeout; 2 3import org.testng.annotations.Test; 4 5public class TimeOutWithParallelSample { 6 7 @Test(timeOut = 1_000) 8 public void myTestMethod() throws InterruptedException { 9 Thread.sleep(1_500); 10 } 11} 12