@Test public void testDescriptionFormatting() throws Exception { final StringDescription description = new StringDescription(); SUT.describeTo(description); assertThat(description.toString(), is("a future that completed with a value that is <1>")); }
@Override public void describeTo(final Description description) { description .appendText("a future that completed with a value that ") .appendDescriptionOf(matcher); }
SuccessfullyCompletedBlockingFuture extends TypeSafeDiagnosingMatcher<Future<? extends T>> { @Override public void describeTo(final Description description) { description .appendText("a future that completed with a value that ") .appendDescriptionOf(matcher); } }
SuccessfullyCompletedBlockingFuture extends TypeSafeDiagnosingMatcher<Future<? extends T>> { @Override public void describeTo(final Description description) { description .appendText("a future that completed with a value that ") .appendDescriptionOf(matcher); } SuccessfullyCompletedBlockingFuture(final Matcher<T> matcher); }
SuccessfullyCompletedBlockingFuture extends TypeSafeDiagnosingMatcher<Future<? extends T>> { @Override public void describeTo(final Description description) { description .appendText("a future that completed with a value that ") .appendDescriptionOf(matcher); } SuccessfullyCompletedBlockingFuture(final Matcher<T> matcher); @Override void describeTo(final Description description); }
SuccessfullyCompletedBlockingFuture extends TypeSafeDiagnosingMatcher<Future<? extends T>> { @Override public void describeTo(final Description description) { description .appendText("a future that completed with a value that ") .appendDescriptionOf(matcher); } SuccessfullyCompletedBlockingFuture(final Matcher<T> matcher); @Override void describeTo(final Description description);  }