mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-04 01:49:15 +00:00
add some sanity tests with joda for date time manipulation
This commit is contained in:
parent
b7b775228e
commit
d523104b91
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user