HamcrestMatchers { public static Matcher<Date> hasHour(final int hour) { return IsDateWithTime.hasHour(hour); }  static Matcher<T> between(final T from, final T to); static Matcher<T> betweenInclusive(final T from, final T to); static Matcher<T> betweenLowerBoundInclusive(final T from, final T to); static Matcher<T> betweenUpperBoundInclusive(final T from, final T to); static Matcher sameInstance(final Object target); static Matcher sameHashcode(final Object target); static Matcher<CharSequence> similar(final CharSequence target, final int levenshteinDistance); static Matcher<T> after(final T value); static Matcher<T> afterOrEqual(final T value); static Matcher<T> before(final T value); static Matcher<T> beforeOrEqual(final T value); static Matcher<T> hasToStringContainingInOrder(final Object... items); static Matcher<Class> hasRuntimeAnnotation(final Class<? extends Annotation> annotation); static Matcher<Class> hasNoArgumentConstructor(); static Matcher<Date> hasYear(final int year); static Matcher<Date> hasMonth(final int month); static Matcher<Date> hasDay(final int day); static Matcher<Date> hasYearAndMonth(final int year, final int month); static Matcher<Date> hasYearMonthAndDay(final int year, final int month, final int day); static Matcher<Date> hasHour(final int hour); static Matcher<Date> hasHour(final int hour, final ClockPeriod clockPeriod); static Matcher<Date> hasMinute(final int minute); static Matcher<Date> hasSecond(final int second); static Matcher<Date> hasMillisecond(final int millisecond); static Matcher<Date> hasHourAndMin(final int hour, final int minute); static Matcher<Date> hasHourAndMin(final int hour, final ClockPeriod clockPeriod, final int minute); static Matcher<Date> hasHourMinAndSec(final int hour, final int minute, final int second); static Matcher<Date> hasHourMinAndSec(final int hour, final ClockPeriod clockPeriod, final int minute,
                                                 final int second); static Matcher<Date> hasHourMinSecAndMillis(final int hour, final int minute, final int second,
                                                       final int millisecond); static Matcher<Date> hasHourMinSecAndMillis(final int hour, final ClockPeriod clockPeriod, final int minute,
                                                       final int second, final int millisecond); static Matcher<Date> inWeekOfYear(final int week); static Matcher<Date> leapYear(); static Matcher<Date> january(); static Matcher<Date> february(); static Matcher<Date> march(); static Matcher<Date> april(); static Matcher<Date> may(); static Matcher<Date> june(); static Matcher<Date> july(); static Matcher<Date> august(); static Matcher<Date> september(); static Matcher<Date> october(); static Matcher<Date> november(); static Matcher<Date> december(); static Matcher<Date> sunday(); static Matcher<Date> monday(); static Matcher<Date> tuesday(); static Matcher<Date> wednesday(); static Matcher<Date> thursday(); static Matcher<Date> friday(); static Matcher<Date> saturday(); static Matcher<Iterable<? extends E>> empty(); static Matcher<Iterable<? extends T>> containsInAnyOrder(final Iterable<T> items); static Matcher<Iterable<? extends T>> containsInOrder(final Iterable<T> items); static Matcher<Iterable<? extends T>> containsInRelativeOrder(final Iterable<T> items); static Matcher<Iterable<K>> containedIn(final Iterable<? super K> comparison); static Matcher<Iterable<? extends E>> hasDistinctElements(); static Matcher<Iterable<T>> sameSizeOf(final Iterable<? super T> comparison); static Matcher<Iterable<E>> hasSizeOne(); static Matcher<Iterable<E>> hasSizeTwo(); static Matcher<Iterable<E>> hasSizeThree(); static Matcher<Iterable<E>> hasSizeFour(); static Matcher<Iterable<E>> hasSizeFive(); static Matcher<Iterable<E>> hasSize(final int size); static Matcher<Iterable<K>> sorted(); static Matcher<Iterable<K>> sortedReversed(); static Matcher<Iterable<K>> sorted(final Comparator<K> comparator); static Matcher<Iterable<K>> sortedReversed(final Comparator<K> comparator); static Matcher<Iterable<K>> subsetOf(final Iterable<? super K> comparison); static Matcher<Map<? extends K, ?>> hasSameKeySet(final Map<? extends K, ?> comparisonMap); static Matcher<T> yaml(); static Matcher UUID(); static Matcher<N> positive(); static Matcher<N> negative(); static Matcher<N> infinity(); static Matcher<N> negativeInfinity(); static Matcher<N> positiveInfinity(); static Matcher<N> notANumber(); static Matcher<T> email(); static Matcher<Throwable> exceptionWithMessage(Class<? extends Throwable> type, String expectedMessage); static Matcher<Optional> emptyOptional(); static Matcher<Optional> notPresent(); static Matcher<Optional> present(); static TypeSafeMatcher<Optional<T>> presentAnd(final Matcher<? super T> innerMatcher);  }
@Test public void testHasHour() throws Exception { testMethodCallsRightMethod(IsDateWithTime.class, "hasHour", int.class); }