/** * {@link MinuteOfHour#isAfter(MinuteOfHour)}のテスト。 * * @throws Exception 例外が発生した場合 */ @Test public void test05_EarlierAfterLater() throws Exception { MinuteOfHour earlier = MinuteOfHour.valueOf(15); MinuteOfHour later = MinuteOfHour.valueOf(45); assertThat(earlier.isAfter(later), is(false)); }
/** * {@link MinuteOfHour#isAfter(MinuteOfHour)}のテスト。 * * @throws Exception 例外が発生した場合 */ @Test public void test06_EqualAfterEqual() throws Exception { MinuteOfHour anMinute = MinuteOfHour.valueOf(45); MinuteOfHour anotherMinute = MinuteOfHour.valueOf(45); assertThat(anMinute.isAfter(anotherMinute), is(false)); }