Search in sources :

Example 1 with DoubleValue

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);
}
Also used : DoubleValue(com.google.protobuf.DoubleValue) Test(org.junit.Test)

Aggregations

DoubleValue (com.google.protobuf.DoubleValue)1 Test (org.junit.Test)1