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

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

Introduction

In this page you can find the example usage for org.jfree.data.time Second 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.SecondTest.java

/**
 * Some checks for the getSerialIndex() method.
 *//*w ww.jav  a2 s .  co m*/
@Test
public void testGetSerialIndex() {
    Second s = new Second(1, 1, 1, 1, 1, 2000);
    assertEquals(3155850061L, s.getSerialIndex());
    s = new Second(1, 1, 1, 1, 1, 1900);
    assertEquals(176461L, s.getSerialIndex());
}

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

/**
 * Some checks for the getSerialIndex() method.
 *///  www  . ja va2s  .c  om
public void testGetSerialIndex() {
    Second s = new Second(1, 1, 1, 1, 1, 2000);
    assertEquals(3155850061L, s.getSerialIndex());
    s = new Second(1, 1, 1, 1, 1, 1900);
    assertEquals(176461L, s.getSerialIndex());
}