@Test public void testIndentDescription() throws Exception { StringDescription innerDescription = new StringDescription(); innerDescription.appendText("a\nb"); StringDescription description = new StringDescription(); DescriptionUtils.indentDescription(description, innerDescription); assertThat(description.toString(), is("a\n b\n")); }
public static void indentDescription(Description description, Description innerDescription) { final Iterable<String> lines = LINE_SPLITTER.split(innerDescription.toString().trim()); final String indentedLines = INDENTED_LINE_JOINER.join(lines); description.appendText(indentedLines).appendText("\n"); }
DescriptionUtils { public static void indentDescription(Description description, Description innerDescription) { final Iterable<String> lines = LINE_SPLITTER.split(innerDescription.toString().trim()); final String indentedLines = INDENTED_LINE_JOINER.join(lines); description.appendText(indentedLines).appendText("\n"); } }
DescriptionUtils { public static void indentDescription(Description description, Description innerDescription) { final Iterable<String> lines = LINE_SPLITTER.split(innerDescription.toString().trim()); final String indentedLines = INDENTED_LINE_JOINER.join(lines); description.appendText(indentedLines).appendText("\n"); } private  DescriptionUtils(); }
DescriptionUtils { public static void indentDescription(Description description, Description innerDescription) { final Iterable<String> lines = LINE_SPLITTER.split(innerDescription.toString().trim()); final String indentedLines = INDENTED_LINE_JOINER.join(lines); description.appendText(indentedLines).appendText("\n"); } private  DescriptionUtils(); static void indentDescription(Description description, Description innerDescription); static void describeNestedMismatches(
      Set<String> allKeys,
      Description mismatchDescription,
      Map<String, Consumer<Description>> mismatchedKeys,
      BiConsumer<String, Description> describeKey); }
DescriptionUtils { public static void indentDescription(Description description, Description innerDescription) { final Iterable<String> lines = LINE_SPLITTER.split(innerDescription.toString().trim()); final String indentedLines = INDENTED_LINE_JOINER.join(lines); description.appendText(indentedLines).appendText("\n"); } private  DescriptionUtils(); static void indentDescription(Description description, Description innerDescription); static void describeNestedMismatches(
      Set<String> allKeys,
      Description mismatchDescription,
      Map<String, Consumer<Description>> mismatchedKeys,
      BiConsumer<String, Description> describeKey);  }