1 package test.listeners;
2 
3 import org.testng.IInvokedMethod;
4 import org.testng.IInvokedMethodListener;
5 import org.testng.ITestResult;
6 
7 public class LListener implements IInvokedMethodListener {
8   public static boolean invoked = false;
9 
10   @Override
beforeInvocation(IInvokedMethod method, ITestResult testResult)11   public void beforeInvocation(IInvokedMethod method, ITestResult testResult) {
12     invoked = true;
13   }
14 
15   @Override
afterInvocation(IInvokedMethod method, ITestResult testResult)16   public void afterInvocation(IInvokedMethod method, ITestResult testResult) {
17   }
18 
19 }
20