Ejemplo n.º 1
0
 public void describeTo(Description description) {
   description.appendText(self.toString());
   if (difference != null) {
     DifferenceReport differenceReport = new DefaultDifferenceReport();
     description.appendText(differenceReport.createReport(difference));
   }
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
  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);
  }