1 54 55 package junitx.runner.monitor; 56 57 import junit.framework.Test; 58 import junit.framework.TestCase; 59 import junitx.runner.engine.RunMonitor; 60 61 65 public class DefaultMonitor implements RunMonitor { 66 67 public static final String IGNORED_FLAG = "_ignored"; 68 69 public boolean execute(Test test) { 70 if (test instanceof TestCase) { 71 TestCase testcase = (TestCase) test; 72 String name = testcase.getName(); 73 74 return !name.endsWith(IGNORED_FLAG); 75 } else { 76 return true; 77 } 78 } 79 80 public void pause(Test test) { 81 } 82 83 public boolean treatIgnoreAsError() { 84 return false; 85 } 86 87 } 88 | Popular Tags |