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

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

Introduction

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

Prototype

@Override
public long getLastMillisecond() 

Source Link

Document

Returns the last millisecond of the second.

Usage

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

/**
 * Some checks for the getLastMillisecond() method.
 *///from ww  w .j a  v  a 2s.  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"));
    Second s = new Second(1, 1, 1, 1, 1, 1970);
    assertEquals(61999L, s.getLastMillisecond());
    Locale.setDefault(saved);
    TimeZone.setDefault(savedZone);
}

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

/**
 * Some checks for the getLastMillisecond() method.
 *///from w w  w .  ja va  2s  .c o  m
public void testGetLastMillisecond() {
    Locale saved = Locale.getDefault();
    Locale.setDefault(Locale.UK);
    TimeZone savedZone = TimeZone.getDefault();
    TimeZone.setDefault(TimeZone.getTimeZone("Europe/London"));
    Second s = new Second(1, 1, 1, 1, 1, 1970);
    assertEquals(61999L, s.getLastMillisecond());
    Locale.setDefault(saved);
    TimeZone.setDefault(savedZone);
}