diff --git a/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java b/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java index 354cef0960b2cea32d16ff32900f62cb9f37f811..85b71c4e84833422b46e6e9b58b447abfebf9ff0 100644 --- a/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java +++ b/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java @@ -66,7 +66,8 @@ public class ConsoleAnnotatorTest extends HudsonTestCase { assertTrue(raw.getContent().contains(nl+"---"+nl+"ooo"+nl+"ooo"+nl)); // there should be two 'ooo's - assertEquals(3,rsp.asXml().split("ooo").length); + String xml = rsp.asXml(); + assertEquals(xml, 3, xml.split("ooo").length); } /**