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

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

Introduction

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

Prototype

@Override
public long getLastMillisecond() 

Source Link

Document

Returns the last millisecond of the hour.

Usage

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

/**
 * Some checks for the getLastMillisecond() method.
 *///from   w  w w . ja v a2s .com
@Test
public void testGetLastMillisecond() {
    Locale saved = Locale.getDefault();
    Locale.setDefault(Locale.UK);
    TimeZone savedZone = TimeZone.getDefault();
    TimeZone.setDefault(TimeZone.getTimeZone("Europe/London"));
    Hour h = new Hour(1, 1, 1, 1970);
    assertEquals(3599999L, h.getLastMillisecond());
    Locale.setDefault(saved);
    TimeZone.setDefault(savedZone);
}

From source file:org.jfree.data.time.junit.HourTest.java

/**
 * Some checks for the getLastMillisecond() method.
 *//*  w  ww.  j  ava2 s. co m*/
public void testGetLastMillisecond() {
    Locale saved = Locale.getDefault();
    Locale.setDefault(Locale.UK);
    TimeZone savedZone = TimeZone.getDefault();
    TimeZone.setDefault(TimeZone.getTimeZone("Europe/London"));
    Hour h = new Hour(1, 1, 1, 1970);
    assertEquals(3599999L, h.getLastMillisecond());
    Locale.setDefault(saved);
    TimeZone.setDefault(savedZone);
}