use of com.apple.foundationdb.record.metadata.expressions.ListKeyExpression in project fdb-record-layer by FoundationDB.
the class KeyExpressionTest method testSerializeList.
@Test
public void testSerializeList() throws Exception {
final ListKeyExpression list = list(field("f1"), field("f2"));
final ListKeyExpression then = new ListKeyExpression(list.toProto());
assertEquals(2, then.getChildren().size());
assertEquals("f2", ((FieldKeyExpression) then.getChildren().get(1)).getFieldName());
}
Aggregations