Example usage for org.jfree.data.time Minute getSerialIndex

List of usage examples for org.jfree.data.time Minute getSerialIndex

Introduction

In this page you can find the example usage for org.jfree.data.time Minute getSerialIndex.

Prototype

@Override
public long getSerialIndex() 

Source Link

Document

Returns a serial index number for the minute.

Usage

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

/**
 * Some checks for the getSerialIndex() method.
 *//*from  ww  w.  jav  a2s.  c om*/
@Test
public void testGetSerialIndex() {
    Minute m = new Minute(1, 1, 1, 1, 2000);
    assertEquals(52597501L, m.getSerialIndex());
    m = new Minute(1, 1, 1, 1, 1900);
    assertEquals(2941L, m.getSerialIndex());
}

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

/**
 * Some checks for the getSerialIndex() method.
 *//*from w ww .j a  v  a  2 s  . c  om*/
public void testGetSerialIndex() {
    Minute m = new Minute(1, 1, 1, 1, 2000);
    assertEquals(52597501L, m.getSerialIndex());
    m = new Minute(1, 1, 1, 1, 1900);
    assertEquals(2941L, m.getSerialIndex());
}