use of com.google.protobuf.DoubleValue in project core-java by SpineEventEngine.
the class ColumnFiltersShould method create_ordering_filters_for_numbers.
@Test
public void create_ordering_filters_for_numbers() {
final double number = 3.14;
final ColumnFilter filter = le("doubleColumn", number);
assertNotNull(filter);
assertEquals(LESS_OR_EQUAL, filter.getOperator());
final DoubleValue value = AnyPacker.unpack(filter.getValue());
assertEquals(number, value.getValue(), 0.0);
}
Aggregations