add some sanity tests with joda for date time manipulation

This commit is contained in:
kimchy 2011-01-01 23:48:25 +02:00
parent b7b775228e
commit d523104b91
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ public class SimpleJodaTests {
} catch (IllegalArgumentException e) {
// all is well
}
// test offset in format
millis = formatter.parseMillis("1970-01-01T00:00:00-02:00");
assertThat(millis, equalTo(TimeValue.timeValueHours(2).millis()));
}
@Test public void testIsoVsCustom() {