@Test public void testSuppressorAlwaysReturnsType() { ColumnSpecification textColumn = createColumnDefinition(UTF8Type.instance, Kind.PARTITION_KEY); ColumnSpecification integerColumn = createColumnDefinition(Int32Type.instance, Kind.REGULAR); BoundValueSuppressor suppressor = new SuppressEverything(); Optional<String> textResult = suppressor.suppress(textColumn, valueMock); Optional<String> integerResult = suppressor.suppress(integerColumn, valueMock); assertThat(textResult).contains("<text>"); assertThat(integerResult).contains("<int>"); verifyZeroInteractions(valueMock); }
@Override public Optional<String> suppress(ColumnSpecification column, ByteBuffer value) { return Optional.of(suppressWithType(column)); }
SuppressEverything extends AbstractSuppressor { @Override public Optional<String> suppress(ColumnSpecification column, ByteBuffer value) { return Optional.of(suppressWithType(column)); } }
SuppressEverything extends AbstractSuppressor { @Override public Optional<String> suppress(ColumnSpecification column, ByteBuffer value) { return Optional.of(suppressWithType(column)); }  }
SuppressEverything extends AbstractSuppressor { @Override public Optional<String> suppress(ColumnSpecification column, ByteBuffer value) { return Optional.of(suppressWithType(column)); }  @Override Optional<String> suppress(ColumnSpecification column, ByteBuffer value); }
SuppressEverything extends AbstractSuppressor { @Override public Optional<String> suppress(ColumnSpecification column, ByteBuffer value) { return Optional.of(suppressWithType(column)); }  @Override Optional<String> suppress(ColumnSpecification column, ByteBuffer value);  }