Example usage for org.jfree.data.time Quarter getLastMillisecond

List of usage examples for org.jfree.data.time Quarter getLastMillisecond

Introduction

In this page you can find the example usage for org.jfree.data.time Quarter getLastMillisecond.

Prototype

@Override
public long getLastMillisecond() 

Source Link

Document

Returns the last millisecond of the quarter.

Usage

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

/**
 * Some checks for the getLastMillisecond() method.
 *///from  w w  w.ja  v  a2  s.c  o  m
@Test
public void testGetLastMillisecond() {
    Locale saved = Locale.getDefault();
    Locale.setDefault(Locale.UK);
    TimeZone savedZone = TimeZone.getDefault();
    TimeZone.setDefault(TimeZone.getTimeZone("Europe/London"));
    Quarter q = new Quarter(3, 1970);
    assertEquals(23583599999L, q.getLastMillisecond());
    Locale.setDefault(saved);
    TimeZone.setDefault(savedZone);
}