/** * @return the version number of this release */ public String getVersion() { return Version.id(); }
public synchronized void addError(final Test test, final Throwable e) { testFailed(TestRunListener.STATUS_ERROR, test, e); }
public static int getPreference(String key, int dflt) { String value = getPreference(key); int intValue = dflt; if (value == null) { return intValue; } try { intValue = Integer.parseInt(value); } catch (NumberFormatException ne) { } return intValue; }
/** * Returns a filtered stack trace */ public static String getFilteredTrace(Throwable e) { return BaseTestRunner.getFilteredTrace(Throwables.getStacktrace(e)); }
protected static Properties getPreferences() { if (fPreferences == null) { fPreferences = new Properties(); fPreferences.put("loading", "true"); fPreferences.put("filterstack", "true"); readPreferences(); } return fPreferences; }
public static void setPreference(String key, String value) { getPreferences().put(key, value); }
public synchronized void startTest(Test test) { testStarted(test.toString()); }
public synchronized void endTest(Test test) { testEnded(test.toString()); }
/** * @return the version number of this release */ public String getVersion() { return Version.id(); }
public static int getPreference(String key, int dflt) { String value = getPreference(key); int intValue = dflt; if (value == null) { return intValue; } try { intValue = Integer.parseInt(value); } catch (NumberFormatException ne) { } return intValue; }
public synchronized void addFailure(final Test test, final AssertionFailedError e) { testFailed(TestRunListener.STATUS_FAILURE, test, e); }
protected static Properties getPreferences() { if (fPreferences == null) { fPreferences = new Properties(); fPreferences.put("loading", "true"); fPreferences.put("filterstack", "true"); readPreferences(); } return fPreferences; }
public static String getPreference(String key) { return getPreferences().getProperty(key); }
public static void main(String[] args) { System.out.println(id()); } }
protected static boolean showStackRaw() { return !getPreference("filterstack").equals("true") || fgFilterStack == false; }
public synchronized void addError(final Test test, final Throwable t) { testFailed(TestRunListener.STATUS_ERROR, test, t); }
public static void main(String[] args) { System.out.println(id()); } }
protected boolean useReloadingTestSuiteLoader() { return getPreference("loading").equals("true") && fLoading; }
public synchronized void addFailure(final Test test, final AssertionFailedError t) { testFailed(TestRunListener.STATUS_FAILURE, test, t); }
protected static boolean showStackRaw() { return !getPreference("filterstack").equals("true") || fgFilterStack == false; }