blob: 3c3feb6f228be80eb86c631bbb4f6a35cc061ddc [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"
};
// dumpResults("Passed", getPassedTests());
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());
}
public Long getId() {
return m_id;
}
}