Examples of RepeaterMonth


Examples of com.mdimension.jchronic.repeaters.RepeaterMonth

  public void testOffset() {
    Span span = new Span(_now, Calendar.SECOND, 60);

    Span offsetSpan;
    offsetSpan = new RepeaterMonth().getOffset(span, 1, Pointer.PointerType.FUTURE);

    assertEquals(Time.construct(2006, 9, 16, 14), offsetSpan.getBeginCalendar());
    assertEquals(Time.construct(2006, 9, 16, 14, 1), offsetSpan.getEndCalendar());

    offsetSpan = new RepeaterMonth().getOffset(span, 1, Pointer.PointerType.PAST);

    assertEquals(Time.construct(2006, 7, 16, 14), offsetSpan.getBeginCalendar());
    assertEquals(Time.construct(2006, 7, 16, 14, 1), offsetSpan.getEndCalendar());
  }
View Full Code Here

Examples of er.chronic.repeaters.RepeaterMonth

  public void testOffset() {
    Span span = new Span(_now, Calendar.SECOND, 60);

    Span offsetSpan;
    offsetSpan = new RepeaterMonth().getOffset(span, 1, Pointer.PointerType.FUTURE);

    assertEquals(Time.construct(2006, 9, 16, 14), offsetSpan.getBeginCalendar());
    assertEquals(Time.construct(2006, 9, 16, 14, 1), offsetSpan.getEndCalendar());

    offsetSpan = new RepeaterMonth().getOffset(span, 1, Pointer.PointerType.PAST);

    assertEquals(Time.construct(2006, 7, 16, 14), offsetSpan.getBeginCalendar());
    assertEquals(Time.construct(2006, 7, 16, 14, 1), offsetSpan.getEndCalendar());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.