コード例 #1
0
 public static Matcher<String> text(String text) {
   return new MultiLineStringMatcher(text, System.getProperty("line.separator"));
 }
コード例 #2
0
 @Test
 public void joinで文字列が連結される() throws Exception {
   String ls = System.getProperty("line.separator");
   String expected = "Hello" + ls + "World" + ls;
   assertThat(MultiLineString.join("Hello", "World"), is(text(expected)));
 }