Java Code Examples for org.jfree.data.time.Year#next()

The following examples show how to use org.jfree.data.time.Year#next() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: YearTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Set up a year equal to 1900.  Request the next year, it should be 1901.
 */
public void test1900Next() {
    Year current = new Year(1900);
    Year next = (Year) current.next();
    assertEquals(1901, next.getYear());
}
 
Example 2
Source File: YearTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Set up a year equal to 9999.  Request the next year, it should be null.
 */
public void test9999Next() {
    Year current = new Year(9999);
    Year next = (Year) current.next();
    assertNull(next);
}
 
Example 3
Source File: YearTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Set up a year equal to 1900.  Request the next year, it should be 1901.
 */
public void test1900Next() {
    Year current = new Year(1900);
    Year next = (Year) current.next();
    assertEquals(1901, next.getYear());
}
 
Example 4
Source File: YearTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Set up a year equal to 9999.  Request the next year, it should be null.
 */
public void test9999Next() {
    Year current = new Year(9999);
    Year next = (Year) current.next();
    assertNull(next);
}