Example usage for org.jfree.data.time Week next

List of usage examples for org.jfree.data.time Week next

Introduction

In this page you can find the example usage for org.jfree.data.time Week next.

Prototype

@Override
public RegularTimePeriod next() 

Source Link

Document

Returns the week following this one.

Usage

From source file:org.jfree.data.time.WeekTest.java

/**
 * Some checks for the testNext() method.
 *///  w w w.j a va2  s.  c  o m
@Test
public void testNext() {
    Week w = new Week(12, 2000);
    w = (Week) w.next();
    assertEquals(new Year(2000), w.getYear());
    assertEquals(13, w.getWeek());
    w = new Week(53, 9999);
    assertNull(w.next());
}