1 6 7 package de.schlichtherle.junit.swingui; 8 9 import java.io.File ; 10 import java.io.FileInputStream ; 11 import java.io.IOException ; 12 import java.util.Properties ; 13 14 17 public class TestRunner extends junit.swingui.TestRunner { 18 19 public TestRunner() { 20 final Properties defaults = new Properties (); 21 defaults.put("loading", "true"); 22 defaults.put("filterstack", "true"); 23 24 final Properties preferences = new Properties (defaults); 25 try { 26 try { 27 preferences.load( 28 TestRunner.class.getResourceAsStream("/META-INF/junit.properties")); 29 } catch (IOException ignored) { 30 preferences.load( 31 new FileInputStream ( 32 new File ( 33 System.getProperty("user.home"), 34 "junit.properties"))); 35 } 36 } catch (IOException failure) { 37 } 39 40 setPreferences(preferences); 41 } 42 43 public static void main(String [] args) { 44 new TestRunner().start(args); 45 } 46 } 47 | Popular Tags |