@Test public void testDescriptionFormatting() throws Exception { final StringDescription description = new StringDescription(); SUT.describeTo(description); assertThat(description.toString(), is("an Optional that's empty")); }
@Override public void describeTo(final Description description) { description.appendText("an Optional that's empty"); }
EmptyOptional extends TypeSafeDiagnosingMatcher<Optional<T>> { @Override public void describeTo(final Description description) { description.appendText("an Optional that's empty"); } }
EmptyOptional extends TypeSafeDiagnosingMatcher<Optional<T>> { @Override public void describeTo(final Description description) { description.appendText("an Optional that's empty"); }  }
EmptyOptional extends TypeSafeDiagnosingMatcher<Optional<T>> { @Override public void describeTo(final Description description) { description.appendText("an Optional that's empty"); }  @Override void describeTo(final Description description); }
EmptyOptional extends TypeSafeDiagnosingMatcher<Optional<T>> { @Override public void describeTo(final Description description) { description.appendText("an Optional that's empty"); }  @Override void describeTo(final Description description);  }