01: package test.parameters;
02:
03: import test.BaseTest;
04:
05: /**
06: * This class
07: *
08: * @author Cedric Beust, Jul 22, 2004
09: *
10: */
11: public class ParameterTest extends BaseTest {
12:
13: // @Configuration(beforeTestMethod = true)
14: // public void methodSetUp() {
15: // m_testRunner.setClasses(new Class[] { test.ParameterTest.class });
16: // }
17:
18: public static void ppp(String s) {
19: System.out.println("[ParameterTest] " + s);
20: }
21:
22: /**
23: * @testng.test
24: */
25: public void stringSingle() {
26: addClass("test.parameters.ParameterSample");
27: setParameter("first-name", "Cedric");
28: addIncludedGroup("singleString");
29: run();
30: String[] passed = { "testSingleString",
31: "testSingleStringDeprecated", };
32: String[] failed = {};
33: verifyTests("Passed", passed, getPassedTests());
34: verifyTests("Failed", failed, getFailedTests());
35: }
36:
37: }
|