1 54 55 package junitx.runner.listener; 56 import java.util.Properties ; 57 58 import junitx.runner.TestRunner; 59 import junitx.runner.engine.RunContext; 60 import junitx.runner.engine.RunListener; 61 62 66 public abstract class AbstractRunListener implements RunListener { 67 68 protected RunContext m_context; 69 70 protected boolean m_filtering = true; 71 72 protected boolean m_verbose = false; 73 74 public void setRunContext(RunContext context) { 75 m_context = context; 76 } 77 78 public void init(Properties props) throws Exception { 79 m_filtering = Boolean.valueOf(props.getProperty(TestRunner.STACKTRACE_FILTERING, "true")).booleanValue(); 80 m_verbose = Boolean.valueOf(props.getProperty(TestRunner.RUNNER_VERBOSE, "false")).booleanValue(); 81 } 82 83 } 84 | Popular Tags |