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

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

Introduction

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

/**
 * Some checks for the getStart() method.
 *//*from   w  w  w  . ja va  2  s .  c  om*/
@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, 0, 0);
    cal.set(Calendar.MILLISECOND, 0);
    Hour h = new Hour(3, 16, 1, 2006);
    assertEquals(cal.getTime(), h.getStart());
    Locale.setDefault(saved);
}

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

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