blob: 8931f388cbf7a1310e011a9b08774d111aeb5422 [file] [log] [blame]
package test;
import org.testng.annotations.Test;
/**
* This class
*
* @author cbeust
*/
public class Test3 extends BaseTest {
private Long m_id;
public Test3() {
m_id = new Long(System.currentTimeMillis());
}
@Test
public void timeOutInParallel() {
addClass("test.sample.TimeOutTest");
setParallel(true);
run();
String[] passed = {
"timeoutShouldPass",
};
String[] failed = {
"timeoutShouldFailByException", "timeoutShouldFailByTimeOut"
};
verifyTests("Passed", passed, getPassedTests());
verifyTests("Failed", failed, getFailedTests());
}
@Test(enabled=false)
public void timeOutInNonParallel() {
addClass("test.sample.TimeOutTest");
setParallel(false);
run();
String[] passed = {
"timeoutShouldPass",
};
String[] failed = {
"timeoutShouldFailByException", "timeoutShouldFailByTimeOut"
};
verifyTests("Passed", passed, getPassedTests());
verifyTests("Failed", failed, getFailedTests());
}
@Override
protected Long getId() {
return m_id;
}
}