List of usage examples for org.jfree.data.time Hour previous
@Override
public RegularTimePeriod previous()
From source file:org.jfree.data.time.HourTest.java
/** * Set up an hour equal to hour zero, 1 January 1900. Request the * previous hour, it should be null./* w w w .j a va2s .co m*/ */ @Test public void testFirstHourPrevious() { Hour first = new Hour(0, new Day(1, MonthConstants.JANUARY, 1900)); Hour previous = (Hour) first.previous(); assertNull(previous); }
From source file:org.jfree.data.time.HourTest.java
/** * Set up an hour equal to hour zero, 1 January 1900. Request the previous * hour, it should be null./*w w w . j av a 2s. co m*/ */ @Test public void testLastHourPrevious() { Hour last = new Hour(23, new Day(31, MonthConstants.DECEMBER, 9999)); Hour previous = (Hour) last.previous(); assertEquals(22, previous.getHour()); assertEquals(9999, previous.getYear()); }
From source file:org.jfree.data.time.junit.HourTest.java
/** * Set up an hour equal to hour zero, 1 January 1900. Request the * previous hour, it should be null.// ww w. ja v a2 s . com */ public void testFirstHourPrevious() { Hour first = new Hour(0, new Day(1, MonthConstants.JANUARY, 1900)); Hour previous = (Hour) first.previous(); assertNull(previous); }
From source file:org.jfree.data.time.junit.HourTest.java
/** * Set up an hour equal to hour zero, 1 January 1900. Request the previous * hour, it should be null.//from w w w. j a v a 2 s . c o m */ public void testLastHourPrevious() { Hour last = new Hour(23, new Day(31, MonthConstants.DECEMBER, 9999)); Hour previous = (Hour) last.previous(); assertEquals(22, previous.getHour()); assertEquals(9999, previous.getYear()); }