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

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

Introduction

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

Prototype

@Override
public RegularTimePeriod previous() 

Source Link

Document

Returns the minute preceding this one.

Usage

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

/**
 * Test for bug 1611872 - previous() fails for first minute in hour.
 *///from w  ww. ja  va 2s . c  o m
@Test
public void test1611872() {
    Minute m1 = new Minute(0, 10, 15, 4, 2000);
    Minute m2 = (Minute) m1.previous();
    assertEquals(m2, new Minute(59, 9, 15, 4, 2000));
}

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

/**
 * Test for bug 1611872 - previous() fails for first minute in hour.
 *//*from   ww w  .  j a v  a  2s  . co m*/
public void test1611872() {
    Minute m1 = new Minute(0, 10, 15, 4, 2000);
    Minute m2 = (Minute) m1.previous();
    assertEquals(m2, new Minute(59, 9, 15, 4, 2000));
}