public void describeTo(Description description) { description.appendText(self.toString()); if (difference != null) { DifferenceReport differenceReport = new DefaultDifferenceReport(); description.appendText(differenceReport.createReport(difference)); } }
public void describeTo(Description description) { if (itemsMode == ItemsMode.AllItems) { description.appendText("all of item is "); } else { description.appendText("any of item is "); } description.appendDescriptionOf(matcher); }
public void describeTo(Description description) { description.appendText("the propery" + this.property + " values of object is:\n"); description.appendText(ListHelper.toString(actualItems)).appendText("\n"); description.appendDescriptionOf(this.matcher); }