Assert.assertEquals(tla.getFailedTests().size(), 0);
Assert.assertEquals(tla.getSkippedTests().size(), 0);
}
private void testFast(boolean useInterceptor) {
TestNG tng = create();
tng.setTestClasses(new Class[] { FooTest.class });
if (useInterceptor) {
tng.setMethodInterceptor(new FastTestsFirstInterceptor());
}
TestListenerAdapter tla = new TestListenerAdapter();
// tng.setParallel("methods");
tng.addListener(tla);
tng.run();
Assert.assertEquals(tla.getPassedTests().size(), 3);
ITestResult first = tla.getPassedTests().get(0);
String method = "zzzfast";