@Test public void shouldMismatchWithMessageWhenRightMatcherEvaluatesEitherWhichIsARightOverNull() throws Exception { Either<String, Integer> either = Either.right(null); Matcher<? super Either<String, Integer>> matcher = right(20); assertThat(matcher, mismatchesSampleWithMessage(either, "got Right with value: null")); }
public static <S, T> Matcher<? super Either<S, T>> right() { return new EitherAnyRightMatcher<S, T>(); }
EitherMatchers { public static <S, T> Matcher<? super Either<S, T>> right() { return new EitherAnyRightMatcher<S, T>(); } }
EitherMatchers { public static <S, T> Matcher<? super Either<S, T>> right() { return new EitherAnyRightMatcher<S, T>(); }  }
EitherMatchers { public static <S, T> Matcher<? super Either<S, T>> right() { return new EitherAnyRightMatcher<S, T>(); }  static Matcher<? super Either<S, T>> left(); static Matcher<? super Either<S, T>> left(S leftValue); static Matcher<? super Either<S, T>> leftOver(Class<S> leftClass, Class<T> rightClass); static Matcher<? super Either<S, T>> leftOverValueAndType(S leftValue, Class<T> rightClass); static Matcher<? super Either<S, T>> right(); static Matcher<? super Either<S, T>> right(T rightValue); static Matcher<? super Either<S, T>> rightOver(Class<S> leftClass, Class<T> rightClass); static Matcher<? super Either<S, T>> rightOverTypeAndValue(Class<S> leftClass, T rightValue); }
EitherMatchers { public static <S, T> Matcher<? super Either<S, T>> right() { return new EitherAnyRightMatcher<S, T>(); }  static Matcher<? super Either<S, T>> left(); static Matcher<? super Either<S, T>> left(S leftValue); static Matcher<? super Either<S, T>> leftOver(Class<S> leftClass, Class<T> rightClass); static Matcher<? super Either<S, T>> leftOverValueAndType(S leftValue, Class<T> rightClass); static Matcher<? super Either<S, T>> right(); static Matcher<? super Either<S, T>> right(T rightValue); static Matcher<? super Either<S, T>> rightOver(Class<S> leftClass, Class<T> rightClass); static Matcher<? super Either<S, T>> rightOverTypeAndValue(Class<S> leftClass, T rightValue);  }