/** * Log an event with the given context * * @param context the context */ private void log(String context) { getLog().debug("==== " + context + " " + getName() + " ===="); } }
/** * Log an event with the given context * * @param context the context */ private void log(String context) { getLog().debug("==== " + context + " " + getName() + " ===="); } }
/** * Raise an assertion failed error for an error * * @param reason the reason * @param cause the cause */ protected void failure(String reason, Throwable cause) { getLog().error(reason, cause); if (cause instanceof AssertionFailedError) throw (AssertionFailedError) cause; Error error = new AssertionFailedError(reason); error.initCause(cause); throw error; }
/** * Raise an assertion failed error for an error * * @param reason the reason * @param cause the cause */ protected void failure(String reason, Throwable cause) { getLog().error(reason, cause); if (cause instanceof AssertionFailedError) throw (AssertionFailedError) cause; Error error = new AssertionFailedError(reason); error.initCause(cause); throw error; }
protected void tearDown() throws Exception { getLog().debug(getName() + " took " + (System.currentTimeMillis() - startTime) + "ms"); log("Stopping"); }
protected void tearDown() throws Exception { getLog().debug(getName() + " took " + (System.currentTimeMillis() - startTime) + "ms"); log("Stopping"); }