use of com.yahoo.elide.datastores.aggregation.timegrains.Time in project elide by yahoo.
the class TimeSerdeTest method testTimeDeserializeYear.
@Test
public void testTimeDeserializeYear() {
LocalDateTime localDate = LocalDateTime.of(2020, java.time.Month.of(01), 01, 00, 00, 00);
Time expectedDate = new Time(localDate, true, false, false, false, false, false, (unused) -> "");
Serde serde = new Time.TimeSerde();
Object actualDate = serde.deserialize(YEAR);
assertEquals(expectedDate, actualDate);
assertEquals(YEAR, serde.serialize(actualDate));
}
Aggregations