2017-02-18 07:31:10 +01:00
|
|
|
package baeldung.com;
|
2017-02-05 00:46:21 +05:30
|
|
|
|
|
|
|
|
import org.testng.annotations.Test;
|
|
|
|
|
|
|
|
|
|
public class TimeOutTest {
|
2017-02-18 07:31:10 +01:00
|
|
|
|
2017-02-11 23:57:50 +05:30
|
|
|
@Test(timeOut = 1000, enabled = false)
|
|
|
|
|
public void givenExecution_takeMoreTime_thenFail() {
|
2017-02-18 07:31:10 +01:00
|
|
|
while (true) ;
|
2017-02-11 23:57:50 +05:30
|
|
|
}
|
2017-02-05 00:46:21 +05:30
|
|
|
}
|