Merge pull request #2344 from metamx/testVersionedTimelineReturnsEmpty

Add missing timeline test for VersionedIntervalTimelineTest
This commit is contained in:
Fangjin Yang 2016-01-27 09:31:59 -08:00
commit 25630c7ebb
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,