String[] argv = {
"-log", "0",
"-d", OutputDirectoryPatch.getOutputDirectory(),
"-methods", "test.sample.Sample2.method1,test.sample.Sample2.method3",
};
TestListenerAdapter tla = new TestListenerAdapter();
TestNG.privateMain(argv, tla);
List<ITestResult> passed = tla.getPassedTests();
Assert.assertEquals(passed.size(), 2);
Assert.assertTrue((passed.get(0).getName().equals("method1") &&
passed.get(1).getName().equals("method3"))
||
(passed.get(1).getName().equals("method1") &&