Home | History | Annotate | Download | only in internal
      1 package org.testng.internal;
      2 
      3 import java.util.List;
      4 import java.util.Set;
      5 
      6 import org.testng.IConfigurationListener;
      7 import org.testng.ITestListener;
      8 import org.testng.ITestNGMethod;
      9 import org.testng.ITestResult;
     10 import 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 (at) beust.com">Cedric Beust</a>
     17  * @author <a href='mailto:the_mindstorm (at) evolva.ro'>Alexandru Popescu</a>
     18  */
     19 public 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