use of com.yahoo.document.serialization.FieldWriter in project vespa by vespa-engine.
the class PredicateFieldValueTest method requireThatSerializeCallsBackToWriter.
@Test
public void requireThatSerializeCallsBackToWriter() {
Field field = Mockito.mock(Field.class);
FieldWriter writer = Mockito.mock(FieldWriter.class);
PredicateFieldValue value = new PredicateFieldValue(SimplePredicates.newPredicate());
value.serialize(field, writer);
Mockito.verify(writer).write(field, value);
}
Aggregations