@Test public void descriptionCanBeElided() { String expected = "expected"; String actual = "actual"; String endLine = System.lineSeparator(); String expectedMessage = endLine + "Expected: \"expected\"" + endLine + " but: was \"actual\""; try { assertThat(actual, equalTo(expected)); } catch (AssertionError e) { assertTrue(e.getMessage().startsWith(expectedMessage)); return; } fail("should have failed"); }
public static <T> void assertThat(T actual, Matcher<? super T> matcher) { assertThat("", actual, matcher); }
MatcherAssert { public static <T> void assertThat(T actual, Matcher<? super T> matcher) { assertThat("", actual, matcher); } }
MatcherAssert { public static <T> void assertThat(T actual, Matcher<? super T> matcher) { assertThat("", actual, matcher); }  }
MatcherAssert { public static <T> void assertThat(T actual, Matcher<? super T> matcher) { assertThat("", actual, matcher); }  static void assertThat(T actual, Matcher<? super T> matcher); static void assertThat(String reason, T actual, Matcher<? super T> matcher); static void assertThat(String reason, boolean assertion); }
MatcherAssert { public static <T> void assertThat(T actual, Matcher<? super T> matcher) { assertThat("", actual, matcher); }  static void assertThat(T actual, Matcher<? super T> matcher); static void assertThat(String reason, T actual, Matcher<? super T> matcher); static void assertThat(String reason, boolean assertion);  }