01: package test.dataprovider;
02:
03: public class ParentBaseTest {
04: protected boolean m_ok1 = false;
05: protected boolean m_ok2 = false;
06:
07: /**
08: * @testng.test dataProvider="child1"
09: */
10: public void useChildDataProvider(String name) {
11: if (name.equals(ChildDataProvider.FN1)) {
12: m_ok1 = true;
13: }
14: if (name.equals(ChildDataProvider.FN2)) {
15: m_ok2 = true;
16: }
17: }
18: }
|