@Test public void shouldMismatchWithMessageWhenHasValueMatcherEvaluatesOptionWithNoValue() throws Exception { Option<String> option = Option.none(); Matcher<? super Option<String>> matcher = hasValue(); assertThat(matcher, mismatchesSampleWithMessage(option, "Option with no 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);  }