01: package test.thread;
02:
03: import org.testng.Assert;
04: import org.testng.xml.XmlSuite;
05:
06: import test.BaseTest;
07:
08: public class SequentialTest extends BaseTest {
09:
10: /**
11: * @testng.test
12: */
13: public void verifySequential() {
14: addClass("test.thread.SequentialSampleTest");
15: setParallel(XmlSuite.PARALLEL_METHODS);
16:
17: run();
18:
19: // String[] passed = {
20: // "f1", "f2", "f3"
21: // };
22: // String[] failed = {
23: // };
24: // String[] skipped = {
25: // };
26: // verifyTests("Passed", passed, getPassedTests());
27: // verifyTests("Failed", failed, getFailedTests());
28: // verifyTests("Skipped", skipped, getSkippedTests());
29: //
30: Assert.assertEquals(SequentialSampleTest.m_threads.size(), 1);
31: }
32:
33: }
|