1package org.testng;
2
3/**
4 * A listener that gets invoked before and after a method is invoked by TestNG.
5 * This listener will only be invoked for configuration and test methods.
6 */
7public interface IInvokedMethodListener extends ITestNGListener {
8
9  void beforeInvocation(IInvokedMethod method, ITestResult testResult);
10
11  void afterInvocation(IInvokedMethod method, ITestResult testResult);
12}
13