Search in sources :

Example 1 with FieldWriter

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);
}
Also used : Field(com.yahoo.document.Field) FieldWriter(com.yahoo.document.serialization.FieldWriter) Test(org.junit.Test)

Aggregations

Field (com.yahoo.document.Field)1 FieldWriter (com.yahoo.document.serialization.FieldWriter)1 Test (org.junit.Test)1