01: package test;
02:
03: import org.testng.annotations.*;
04: import org.testng.xml.XmlSuite;
05:
06: /**
07: * This class
08: *
09: * @author cbeust
10: */
11: public class Misc extends BaseTest {
12:
13: @Test
14: public void makeSureSetUpWithParameterWithNoParametersFails() {
15: addClass("test.sample.SetUpWithParameterTest");
16: setVerbose(0);
17: // setParallel(XmlSuite.PARALLEL_METHODS);
18: run();
19: String[] passed = {};
20: // @Configuration failures are not reported in the ITestListener
21: String[] failed = {};
22: String[] skipped = { "test", };
23: verifyTests("Passed", passed, getPassedTests());
24: verifyTests("Failed", failed, getFailedTests());
25: verifyTests("Failed", skipped, getSkippedTests());
26: }
27:
28: }
|