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

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

Introduction

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

Prototype

@Override
public long getSerialIndex() 

Source Link

Document

Returns a serial index number for the millisecond.

Usage

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

/**
 * Some checks for the getSerialIndex() method.
 *///from w w w. ja v  a2  s.c o  m
@Test
public void testGetSerialIndex() {
    Millisecond m = new Millisecond(500, 1, 1, 1, 1, 1, 2000);
    assertEquals(3155850061500L, m.getSerialIndex());
    m = new Millisecond(500, 1, 1, 1, 1, 1, 1900);
    // TODO: this must be wrong...
    assertEquals(176461500L, m.getSerialIndex());
}

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

/**
 * Some checks for the getSerialIndex() method.
 */// w  w w . ja  va2  s  . com
public void testGetSerialIndex() {
    Millisecond m = new Millisecond(500, 1, 1, 1, 1, 1, 2000);
    assertEquals(3155850061500L, m.getSerialIndex());
    m = new Millisecond(500, 1, 1, 1, 1, 1, 1900);
    // TODO: this must be wrong...
    assertEquals(176461500L, m.getSerialIndex());
}