verifyPassedTests(tla, "test1", "test2", "testX", "test2", "test1");
}
@Test
public void orderShouldBePreservedInMethodsWithSameNameAndInDifferentClassesAndDifferentPackage() {
TestNG tng = create();
XmlSuite s = createXmlSuite("PreserveOrder");
XmlTest t = new XmlTest(s);
t.getXmlClasses().add(new XmlClass("test.testng173.ClassA"));
t.getXmlClasses().add(new XmlClass("test.testng173.anotherpackage.ClassC"));
t.setPreserveOrder("true");
tng.setXmlSuites(Arrays.asList(s));
TestListenerAdapter tla = new TestListenerAdapter();
tng.addListener(tla);
tng.run();
// bug
//verifyPassedTests(tla, "test1", "test2", "testX", "test1", "test2");
verifyPassedTests(tla, "test1", "test2", "testX", "test2", "test1");