@Test
  public void testPack() {
    LocalDate date = LocalDate.now();
    LocalTime time = LocalTime.now();

    long packed = pack(date, time);

    LocalDate d1 = PackedLocalDate.asLocalDate(date(packed));
    LocalTime t1 = PackedLocalTime.asLocalTime(time(packed));
    assertNotNull(d1);
    assertNotNull(t1);
    assertEquals(date.toString(), d1.toString());
  }
示例#2
0
 public Filter isAfter(LocalDate date) {
   return new LocalDateIsAfter(this, PackedLocalDate.pack(date));
 }
示例#3
0
 public Filter isBefore(LocalDate date) {
   return new LocalDateIsBefore(this, PackedLocalDate.pack(date));
 }