01: package test;
02:
03: import org.testng.xml.XmlSuite;
04:
05: /**
06: * This class
07: *
08: * @author cbeust
09: */
10: public class Test3 extends BaseTest {
11: private Long m_id;
12:
13: public Test3() {
14: m_id = new Long(System.currentTimeMillis());
15: }
16:
17: /**
18: * @testng.test
19: */
20: public void timeOut() {
21: addClass("test.sample.TimeOutTest");
22: setParallel(XmlSuite.PARALLEL_METHODS);
23: run();
24: String[] passed = { "timeoutShouldPass", };
25: String[] failed = { "timeoutShouldFail1", "timeoutShouldFail2" };
26: verifyTests("Passed", passed, getPassedTests());
27: verifyTests("Failed", failed, getFailedTests());
28: }
29:
30: protected Long getId() {
31: return m_id;
32: }
33: }
|