1 package test.methodinterceptors; 2 3 import org.testng.annotations.Listeners; 4 import org.testng.annotations.Test; 5 6 7 @Listeners({RemoveAMethodInterceptor.class}) 8 public class LockUpInterceptorSampleTest { 9 10 @Test one()11 public void one() { 12 log("one"); 13 } 14 15 @Test two()16 public void two() { 17 log("two"); 18 } 19 20 @Test three()21 public void three() { 22 log("three"); 23 } 24 log(String s)25 private static void log(String s) { 26 // System.out.println("[MITest] " + s); 27 } 28 }