}
private void runTest(IAnnotationTransformer transformer,
String passedName, String failedName)
{
TestNG tng = new TestNG();
tng.setVerbose(0);
if (transformer != null) {
tng.setAnnotationTransformer(transformer);
}
tng.setTestClasses(new Class[] { AnnotationTransformerClassSampleTest.class});
TestListenerAdapter tla = new TestListenerAdapter();
tng.addListener(tla);
tng.run();
List<ITestResult> results =
passedName != null ? tla.getPassedTests() : tla.getFailedTests();
String name = passedName != null ? passedName : failedName;