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