Example usage for org.jfree.data.time Year getEnd

List of usage examples for org.jfree.data.time Year getEnd

Introduction

In this page you can find the example usage for org.jfree.data.time Year getEnd.

Prototype

@Override
public Date getEnd() 

Source Link

Document

Returns the date/time that marks the end of the time period.

Usage

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

/**
 * Some checks for the getEnd() method./*  ww w.j a  v  a  2 s .c  o  m*/
 */
@Test
public void testGetEnd() {
    Locale saved = Locale.getDefault();
    Locale.setDefault(Locale.ITALY);
    Calendar cal = Calendar.getInstance(Locale.ITALY);
    cal.set(2006, Calendar.DECEMBER, 31, 23, 59, 59);
    cal.set(Calendar.MILLISECOND, 999);
    Year y = new Year(2006);
    assertEquals(cal.getTime(), y.getEnd());
    Locale.setDefault(saved);
}