1 package test; 2 3 import org.testng.annotations.BeforeSuite; 4 import org.testng.collections.Lists; 5 6 import java.util.List; 7 8 /** 9 * Base class for tests that need to log methods as they get called. 10 * 11 * @author cbeust 12 */ 13 public class BaseLogTest { 14 private static List<String> m_log; 15 16 @BeforeSuite 17 public void bc() { 18 m_log = Lists.newArrayList(); 19 } 20 21 public static void log(String s) { 22 m_log.add(s); 23 } 24 25 public static List<String> getLog() { 26 return m_log; 27 } 28 } 29