@Test public void shouldProvideAdequateDescriptionWhenHasValueWithSpecificValueAskedToDescribeItself() throws Exception { Matcher<? super Option<String>> matcher = hasValue("value"); StringDescription description = new StringDescription(); matcher.describeTo(description); assertThat(description.toString(), is("Option with value: \"value\"")); }
public static <T> Matcher<? super Option<T>> hasValue() { return new OptionHasAnyValueMatcher(); }
OptionMatchers { public static <T> Matcher<? super Option<T>> hasValue() { return new OptionHasAnyValueMatcher(); } }
OptionMatchers { public static <T> Matcher<? super Option<T>> hasValue() { return new OptionHasAnyValueMatcher(); }  }
OptionMatchers { public static <T> Matcher<? super Option<T>> hasValue() { return new OptionHasAnyValueMatcher(); }  static Matcher<? super Option<T>> hasValue(); static Matcher<? super Option<T>> hasValue(final T value); static Matcher<? super Option<T>> hasValueOf(Class<T> valueClass); static Matcher<? super Option<T>> hasNoValue(); static Matcher<? super Option<T>> hasNoValueOf(Class<T> valueClass); }
OptionMatchers { public static <T> Matcher<? super Option<T>> hasValue() { return new OptionHasAnyValueMatcher(); }  static Matcher<? super Option<T>> hasValue(); static Matcher<? super Option<T>> hasValue(final T value); static Matcher<? super Option<T>> hasValueOf(Class<T> valueClass); static Matcher<? super Option<T>> hasNoValue(); static Matcher<? super Option<T>> hasNoValueOf(Class<T> valueClass);  }