1package org.testng.internal; 2 3import java.util.List; 4import java.util.Set; 5 6import org.testng.IConfigurationListener; 7import org.testng.ITestListener; 8import org.testng.ITestNGMethod; 9import org.testng.ITestResult; 10import org.testng.xml.XmlTest; 11 12/** 13 * An interface defining the notification for @Test results and also 14 * \@Configuration results. 15 * 16 * @author <a href="mailto:cedric@beust.com">Cedric Beust</a> 17 * @author <a href='mailto:the_mindstorm@evolva.ro'>Alexandru Popescu</a> 18 */ 19public interface ITestResultNotifier { 20 21 Set<ITestResult> getPassedTests(ITestNGMethod tm); 22 23 Set<ITestResult> getFailedTests(ITestNGMethod tm); 24 25 Set<ITestResult> getSkippedTests(ITestNGMethod tm); 26 27 void addPassedTest(ITestNGMethod tm, ITestResult tr); 28 29 void addSkippedTest(ITestNGMethod tm, ITestResult tr); 30 31 void addFailedTest(ITestNGMethod tm, ITestResult tr); 32 33 void addFailedButWithinSuccessPercentageTest(ITestNGMethod tm, ITestResult tr); 34 35 void addInvokedMethod(InvokedMethod im); 36 37 XmlTest getTest(); 38 39 List<ITestListener> getTestListeners(); 40 41 List<IConfigurationListener> getConfigurationListeners(); 42} 43