コード例 #1
0
 public void describeTo(Description description) {
   description.appendText(self.toString());
   if (difference != null) {
     DifferenceReport differenceReport = new DefaultDifferenceReport();
     description.appendText(differenceReport.createReport(difference));
   }
 }
コード例 #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);
 }
コード例 #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);
  }