1 package test.timeout; 2 3 import org.testng.annotations.Test; 4 5 /** 6 * Tests timeouts set from testng.xml 7 * @author cbeust 8 */ 9 public class TimeOutSample2Test { 10 11 @Test(timeOut = 1_500) timeoutShouldFailByTimeOut()12 public void timeoutShouldFailByTimeOut() throws InterruptedException { 13 Thread.sleep(10_000); 14 } 15 } 16