use of com.yahoo.prelude.fastsearch.FastHit in project vespa by vespa-engine.
the class HitConverterTestCase method requireThatHitTagIsCopiedFromGroupingListContext.
@Test
public void requireThatHitTagIsCopiedFromGroupingListContext() {
QueryPacketData ctxTag = new QueryPacketData();
GroupingListHit ctxHit = new GroupingListHit(null, null);
ctxHit.setQueryPacketData(ctxTag);
HitConverter converter = new HitConverter(new MySearcher(), new Query());
Hit hit = converter.toSearchHit("default", new FS4Hit(1, createGlobalId(2), 3).setContext(ctxHit));
assertNotNull(hit);
assertTrue(hit instanceof FastHit);
assertSame(ctxTag, ((FastHit) hit).getQueryPacketData());
}
Aggregations