• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
bc()17   public void bc() {
18     m_log = Lists.newArrayList();
19   }
20 
log(String s)21   public static void log(String s) {
22     m_log.add(s);
23   }
24 
getLog()25   public static List<String> getLog() {
26     return m_log;
27   }
28 }
29