@Test public void testGetText() throws Exception { if (testDOMs[0] == null) setup(); for (int i = 0; i < testPages.length; i++) { StringBuffer sb = new StringBuffer(); utils.getText(sb, testDOMs[i]); String text = sb.toString(); assertTrue( "example " + i + " : expecting text: " + answerText[i] + System.getProperty("line.separator") + System.getProperty("line.separator") + "got text: " + text, equalsIgnoreWhitespace(answerText[i], text)); } }