configureProject(DIR + "/cdataoutput.xml");
if (getProject().getProperty("cdata.inner") == null) {
// avoid endless loop
executeTarget("run-junit");
File f = getProject().resolveFile(REPORT);
FileReader reader = null;
try {
reader = new FileReader(f);
String content = FileUtils.readFully(reader);
assertTrue(content.indexOf("</RESPONSE>]]>"
+ "</ERROR>") > 0);
} finally {
if (reader != null) {
reader.close();
}
f.delete();
}
}