if (stripWhitespace(expected).equals(stripWhitespace(actual))) { return; } else { fail(expected, actual);
StringTokenizer expectedTokens = new StringTokenizer(expected, "\n\r"); StringTokenizer actualTokens = new StringTokenizer(expected, "\n\r");  int lineNumber = 1; while (expectedTokens.hasMoreTokens()) { if (actualTokens.hasMoreTokens()) { String expectedLine = stripWhitespace(expectedTokens.nextToken()); String actualLine = stripWhitespace(actualTokens.nextToken()); if(!expectedLine.equals(actualLine)) { fail(expected, actual, lineNumber); } } else { fail(expected, actual, lineNumber); }
    private void doDiff(String expected, String actual) {        if (stripWhitespace(expected).equals(stripWhitespace(actual))) {            return;        } else {            fail(expected, actual);        }    }