01: package test.superclass;
02:
03: import org.testng.annotations.Test;
04:
05: import test.BaseTest;
06:
07: public class MainTest extends BaseTest {
08:
09: @Test
10: public void baseMethodIsCalledWithMethodTest() {
11: addClass("test.superclass.Child1Test");
12: run();
13: String[] passed = { "tbase", "t1", "t2", "t3" };
14: String[] failed = {};
15: verifyTests("Passed", passed, getPassedTests());
16: verifyTests("Failed", failed, getFailedTests());
17: }
18:
19: @Test
20: public void baseMethodIsCalledWithClassTest() {
21: addClass("test.superclass.Child2Test");
22: run();
23: String[] passed = { "tbase", "t1", "t2", "t3" };
24: String[] failed = {};
25: verifyTests("Passed", passed, getPassedTests());
26: verifyTests("Failed", failed, getFailedTests());
27: }
28:
29: }
|