1 package test.verify; 2 3 import org.testng.annotations.Test; 4 5 /** 6 * Same class as VerifySampleTest but without the @Listeners annotation. 7 */ 8 public class VerifyNoListenersSampleTest { 9 10 @Verify 11 @Test f1()12 public void f1() { 13 log("f1"); 14 } 15 16 @Verify 17 @Test f2()18 public void f2() { 19 log("f2"); 20 } 21 22 @Verifier 23 @Test verify()24 public void verify() { 25 log("Verifying"); 26 } 27 log(String string)28 private void log(String string) { 29 if (false) { 30 System.out.println(string); 31 } 32 } 33 } 34