01: package test.superclass;
02:
03: import org.testng.annotations.Test;
04:
05: import test.BaseTest;
06:
07: public class Test3 extends BaseTest {
08:
09: @Test
10: public void shouldExcludeBaseMethods() {
11: addClass("test.superclass.ChildSampleTest3");
12: addExcludedMethod("test.superclass.ChildSampleTest3", "pass");
13: addExcludedMethod("test.superclass.ChildSampleTest3", "base");
14: run();
15: String[] passed = {};
16: String[] failed = { "fail" };
17: verifyTests("Failed", failed, getFailedTests());
18: verifyTests("Passed", passed, getPassedTests());
19: }
20: }
|