configureGroup(a, true /* multi */);
}
private void configureGroup(String[] a, boolean multi) {
XmlSuite suite = createXmlSuite("Dependencies");
XmlTest test =
createXmlTest(suite, "DependencyTest", GroupDependencySampleTest.class.getName());
if (multi) {
test.addXmlDependencyGroup(a[2], a[1] + " " + a[0]);
} else {
test.addXmlDependencyGroup(a[2], a[1]);
test.addXmlDependencyGroup(a[1], a[0]);
}
TestNG tng = create();
tng.setXmlSuites(Arrays.asList(suite));
TestListenerAdapter tla = new TestListenerAdapter();