use of org.apache.jackrabbit.oak.api.ResultRow in project jackrabbit-oak by apache.
the class ContentRemoteResultTest method testBooleanColumn.
@Test
public void testBooleanColumn() {
PropertyValue value = mock(PropertyValue.class);
doReturn(Type.BOOLEAN).when(value).getType();
doReturn(true).when(value).getValue(Type.BOOLEAN);
ResultRow row = mock(ResultRow.class);
doReturn(value).when(row).getValue("column");
ContentRemoteResult result = createResult(row);
RemoteValue remoteValue = result.getColumnValue("column");
assertEquals(true, remoteValue.asBoolean());
}
Aggregations