01: package org.testng.internal;
02:
03: import java.util.List;
04: import java.util.Set;
05:
06: import org.testng.ITestListener;
07: import org.testng.ITestNGMethod;
08: import org.testng.ITestResult;
09: import org.testng.xml.XmlTest;
10:
11: /**
12: * An interface defining the notification for @Test results and also
13: * @Configuration results.
14: *
15: * @author <a href="mailto:cedric@beust.com">Cedric Beust</a>
16: * @author <a href='mailto:the_mindstorm@evolva.ro'>Alexandru Popescu</a>
17: */
18: public interface ITestResultNotifier {
19:
20: Set<ITestResult> getPassedTests(ITestNGMethod tm);
21:
22: void addPassedTest(ITestNGMethod tm, ITestResult tr);
23:
24: void addSkippedTest(ITestNGMethod tm, ITestResult tr);
25:
26: void addFailedTest(ITestNGMethod tm, ITestResult tr);
27:
28: void addFailedButWithinSuccessPercentageTest(ITestNGMethod tm,
29: ITestResult tr);
30:
31: void addInvokedMethod(InvokedMethod im);
32:
33: XmlTest getTest();
34:
35: List<ITestListener> getTestListeners();
36:
37: List<IConfigurationListener> getConfigurationListeners();
38: }
|