01: package test.dataprovider;
02:
03: import org.testng.Assert;
04:
05: public class ChildDataProvider extends ParentBaseTest {
06: static final String FN1 = "Alex";
07: static final String FN2 = "Ana-Maria";
08:
09: /**
10: * @testng.data-provider name="child1"
11: */
12: public Object[][] createData() {
13: return new Object[][] { new Object[] { FN1 },
14: new Object[] { FN2 }, };
15: }
16:
17: /**
18: * @testng.test dependsOnMethods="useChildDataProvider"
19: */
20: public void verifyParentInvocation() {
21: Assert.assertTrue(m_ok1 && m_ok2);
22: }
23: }
|