Search in sources :

Example 6 with EquivItem

use of com.yahoo.prelude.query.EquivItem in project vespa by vespa-engine.

the class SerializeItemTestCase method serialize_equiv_item.

@Test
public void serialize_equiv_item() throws ParseException {
    EquivItem equivItem = new EquivItem();
    equivItem.addItem(new WordItem("first"));
    EquivItem deSerialized = serializeThenParse(equivItem);
    assertThat(deSerialized.getItemCount(), is(1));
}
Also used : EquivItem(com.yahoo.prelude.query.EquivItem) WordItem(com.yahoo.prelude.query.WordItem) Test(org.junit.Test)

Aggregations

EquivItem (com.yahoo.prelude.query.EquivItem)6 Test (org.junit.Test)5 WordItem (com.yahoo.prelude.query.WordItem)2 MarkerWordItem (com.yahoo.prelude.query.MarkerWordItem)1 NonNull (edu.umd.cs.findbugs.annotations.NonNull)1 ByteBuffer (java.nio.ByteBuffer)1