listener.getLogger().println("ooo");
return true;
}
});
FreeStyleBuild b = buildAndAssertSuccess(p);
// make sure we see the annotation
HtmlPage rsp = createWebClient().getPage(b, "console");
assertEquals(1,rsp.selectNodes("//B[@class='demo']").size());
// make sure raw console output doesn't include the garbage
TextPage raw = (TextPage)createWebClient().goTo(b.getUrl()+"consoleText","text/plain");
System.out.println(raw.getContent());
String nl = System.getProperty("line.separator");
assertTrue(raw.getContent().contains(nl+"---"+nl+"ooo"+nl+"ooo"+nl));
// there should be two 'ooo's