package test; | |
import java.util.List; | |
import org.testng.annotations.BeforeSuite; | |
import org.testng.collections.Lists; | |
/** | |
* 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; | |
} | |
} |