1 package jester.tests; 2 3 import jester.Configuration; 4 import jester.Logger; 5 import jester.RealLogger; 6 7 public class MockConfiguration implements Configuration { 8 9 private String myCompilationCommand = "javac"; 10 private Logger logger = new RealLogger(); 11 12 public void setCompilationCommand(String cmd) { 13 myCompilationCommand = cmd; 14 } 15 16 public String compilationCommand() { 17 return myCompilationCommand; 18 } 19 20 public Logger getLogger() { 21 return logger; 22 } 23 24 public boolean shouldReportEagerly() { 25 return true; 26 } 27 28 public String sourceFileExtension() { 29 return ".java"; 30 } 31 32 public String testRunningCommand() { 33 return "java " + jester.TestRunnerImpl.class.getName(); 34 } 35 36 public String testsPassString() { 37 return "PASSED"; 38 } 39 40 public String xmlReportFileName() { 41 return "jesterReport.xml"; 42 } 43 44 public boolean closeUIOnFinish() { 45 return false; 46 } 47 48 } 49 | Popular Tags |