01: package test.methodselectors;
02:
03: import org.testng.annotations.Test;
04:
05: import test.BaseTest;
06:
07: public class BeanShellTest extends BaseTest {
08:
09: @Test
10: public void onlyGroup1() {
11: addClass("test.methodselectors.SampleTest");
12: setBeanShellExpression("groups.\n containsKey \t (\"test1\")");
13: run();
14: String[] passed = { "test1", };
15: String[] failed = {};
16: verifyTests("Passed", passed, getPassedTests());
17: verifyTests("Failed", failed, getFailedTests());
18: }
19:
20: public static void ppp(String s) {
21: System.out.println("[MethodSelectorTest] " + s);
22: }
23: }
|