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

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

Introduction

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

Prototype

@Override
public Date getStart() 

Source Link

Document

Returns the date/time that marks the start of the time period.

Usage

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

/**
 * Some checks for the getStart() method.
 *//*w  w  w  . j  a  va 2  s  .  c o m*/
@Test
public void testGetStart() {
    Locale saved = Locale.getDefault();
    Locale.setDefault(Locale.ITALY);
    Calendar cal = Calendar.getInstance(Locale.ITALY);
    cal.set(2006, Calendar.JANUARY, 16, 3, 47, 55);
    cal.set(Calendar.MILLISECOND, 555);
    Millisecond m = new Millisecond(555, 55, 47, 3, 16, 1, 2006);
    assertEquals(cal.getTime(), m.getStart());
    Locale.setDefault(saved);
}

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

/**
 * Some checks for the getStart() method.
 *//*  w  w w .jav  a2 s. com*/
public void testGetStart() {
    Locale saved = Locale.getDefault();
    Locale.setDefault(Locale.ITALY);
    Calendar cal = Calendar.getInstance(Locale.ITALY);
    cal.set(2006, Calendar.JANUARY, 16, 3, 47, 55);
    cal.set(Calendar.MILLISECOND, 555);
    Millisecond m = new Millisecond(555, 55, 47, 3, 16, 1, 2006);
    assertEquals(cal.getTime(), m.getStart());
    Locale.setDefault(saved);
}