package com.aconex.scrutineer;
import org.elasticsearch.common.joda.time.DateTimeZone;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.is;
public class TimestampFormatterTest {
@Test
public void shouldConvertVersionToTimestamp() {
Object timestamp = new TimestampFormatter(DateTimeZone.forOffsetHours(4)).apply(0L);
assertThat(timestamp, instanceOf(String.class));
assertThat(timestamp.toString(), is("0(1970-01-01T04:00:00.000+04:00)"));
}
}