Add missing timeline test for VersionedIntervalTimelineTest

This commit is contained in:
Charles Allen 2016-01-27 08:49:08 -08:00
parent ab635c5cd3
commit 4282eac067
1 changed files with 10 additions and 0 deletions

View File

@ -1495,6 +1495,16 @@ public class VersionedIntervalTimelineTest
);
}
@Test
public void testNotFoundReturnsEmpty() throws Exception
{
timeline = makeStringIntegerTimeline();
add("2011-04-01/2011-04-09", "1", 1);
Assert.assertTrue(timeline.lookup(Interval.parse("1970/1980")).isEmpty());
}
private Pair<Interval, Pair<String, PartitionHolder<Integer>>> createExpected(
String intervalString,
String version,