assertTrue(result.getHtml() != null);
}
private void assertFailsWithError(String uri, String content,
MessageLevel lvl) {
CajolingServiceResult result = service.cajole(
null, uri, content, false, null);
assertNull(result.getHtml());
assertNull(result.getJavascript());
for (String message : result.getMessages()) {
if (message.startsWith(lvl.name())) {
return;
}
}
}