1 package test.tmp;
2 
3 import org.testng.ITestResult;
4 import org.testng.TestListenerAdapter;
5 
6 public class BListener extends TestListenerAdapter {
BListener()7   public BListener() {
8     System.out.println("BListener created");
9   }
10 
11   @Override
onTestSuccess(ITestResult tr)12   public void onTestSuccess(ITestResult tr) {
13     System.out.println("Success");
14     super.onTestSuccess(tr);
15   }
16 
17   @Override
onTestFailure(ITestResult tr)18   public void onTestFailure(ITestResult tr) {
19     System.out.println("Failure");
20     super.onTestFailure(tr);
21   }
22 
23 }
24