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

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

Introduction

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

Prototype

public int getYearValue() 

Source Link

Document

Returns the year in which the week falls, as an integer value.

Usage

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

/**
 * A test case for bug 1448828.//ww w  . j a va 2  s.  c om
 */
@Test
public void testBug1448828() {
    Locale saved = Locale.getDefault();
    Locale.setDefault(Locale.UK);
    try {
        Week w = new Week(new Date(1136109830000l), TimeZone.getTimeZone("GMT"));
        assertEquals(2005, w.getYearValue());
        assertEquals(52, w.getWeek());
    } finally {
        Locale.setDefault(saved);
    }
}