public WebAppMonitor assertSuccessFraction(String message, double fraction) { int failures = getFailures(); int attempts = getAttempts(); if ((failures > (1-fraction) * attempts + 0.0001) || attempts <= 0) { Assert.fail(message+" -- webapp access failures! " + "("+failures+" failed of "+attempts+" monitoring attempts) against "+getUrl()+"; " + "last was "+getLastStatus()+" taking "+getLastTime()+"ms" + (getLastFailure() != null ? "; last failure was "+getLastFailure() : "")); } return this; } public WebAppMonitor resetCounts() {