@Test public void testDescriptionFormatting() throws Exception { final StringDescription description = new StringDescription(); SUT.describeTo(description); assertThat( description.toString(), is("a stage that completed with an exception " + "that is an instance of java.lang.RuntimeException") ); }
@Override public void describeTo(final Description description) { description .appendText("a stage that completed with an exception that ") .appendDescriptionOf(matcher); }
ExceptionallyCompletedCompletionStage extends TypeSafeDiagnosingMatcher<CompletionStage<?>> { @Override public void describeTo(final Description description) { description .appendText("a stage that completed with an exception that ") .appendDescriptionOf(matcher); } }
ExceptionallyCompletedCompletionStage extends TypeSafeDiagnosingMatcher<CompletionStage<?>> { @Override public void describeTo(final Description description) { description .appendText("a stage that completed with an exception that ") .appendDescriptionOf(matcher); } ExceptionallyCompletedCompletionStage(final Matcher<? extends Throwable> matcher); }
ExceptionallyCompletedCompletionStage extends TypeSafeDiagnosingMatcher<CompletionStage<?>> { @Override public void describeTo(final Description description) { description .appendText("a stage that completed with an exception that ") .appendDescriptionOf(matcher); } ExceptionallyCompletedCompletionStage(final Matcher<? extends Throwable> matcher); @Override void describeTo(final Description description); }
ExceptionallyCompletedCompletionStage extends TypeSafeDiagnosingMatcher<CompletionStage<?>> { @Override public void describeTo(final Description description) { description .appendText("a stage that completed with an exception that ") .appendDescriptionOf(matcher); } ExceptionallyCompletedCompletionStage(final Matcher<? extends Throwable> matcher); @Override void describeTo(final Description description);  }