ValueFilterAdapter extends TypedFilterAdapterBase<ValueFilter> { private static ValueRangeFilter range() { return FILTERS.value().range(); }  @Override Filter adapt(FilterAdapterContext context, ValueFilter filter); Filter toFilter(FilterAdapterContext context, ValueFilter filter); @Override FilterSupportStatus isFilterSupported(FilterAdapterContext context, ValueFilter filter);  }
@Test public void testLessThanValueFilter() throws IOException { assertAdaptedForm( FOO_BINARY_COMPARATOR, CompareOp.LESS, FILTERS.value().range().endOpen(ByteString.copyFrom(FOO_BYTES))); }
@Test public void testLessThanEqualValueFilter() throws IOException { assertAdaptedForm( FOO_BINARY_COMPARATOR, CompareOp.LESS_OR_EQUAL, FILTERS.value().range().endClosed(FOO_BYTESTRING)); }
@Test public void testEqualValueFilter() throws IOException { assertAdaptedForm( FOO_BINARY_COMPARATOR, CompareOp.EQUAL, FILTERS.value().range().startClosed(FOO_BYTESTRING).endClosed(FOO_BYTESTRING)); }
@Test public void testGreaterThanValueFilter() throws IOException { assertAdaptedForm( FOO_BINARY_COMPARATOR, CompareOp.GREATER, FILTERS.value().range().startOpen(FOO_BYTESTRING)); }
@Test public void testGreaterThanEqualValueFilter() throws IOException { assertAdaptedForm( FOO_BINARY_COMPARATOR, CompareOp.GREATER_OR_EQUAL, FILTERS.value().range().startClosed(FOO_BYTESTRING)); }
@Test public void testNotEqualValueFilter() throws IOException { assertAdaptedForm( FOO_BINARY_COMPARATOR, CompareOp.NOT_EQUAL, FILTERS .interleave() .filter(FILTERS.value().range().endOpen(FOO_BYTESTRING)) .filter(FILTERS.value().range().startOpen(FOO_BYTESTRING))); }