@Test @Parameters(method = "testBlobsAreHidden_parameters") public void testBlobsAreHidden(ColumnSpecification column, String expectedString) { ByteBuffer valueMock = mock(ByteBuffer.class); BoundValueSuppressor suppressor = new SuppressBlobs(); Optional<String> result = suppressor.suppress(column, valueMock); assertThat(result).contains(expectedString); verifyZeroInteractions(valueMock); }
@Override public Optional<String> suppress(ColumnSpecification column, ByteBuffer value) { return containsBlob(column.type) ? Optional.of(suppressWithType(column)) : Optional.empty(); }
SuppressBlobs extends AbstractSuppressor { @Override public Optional<String> suppress(ColumnSpecification column, ByteBuffer value) { return containsBlob(column.type) ? Optional.of(suppressWithType(column)) : Optional.empty(); } }
SuppressBlobs extends AbstractSuppressor { @Override public Optional<String> suppress(ColumnSpecification column, ByteBuffer value) { return containsBlob(column.type) ? Optional.of(suppressWithType(column)) : Optional.empty(); }  }
SuppressBlobs extends AbstractSuppressor { @Override public Optional<String> suppress(ColumnSpecification column, ByteBuffer value) { return containsBlob(column.type) ? Optional.of(suppressWithType(column)) : Optional.empty(); }  @Override Optional<String> suppress(ColumnSpecification column, ByteBuffer value); }
SuppressBlobs extends AbstractSuppressor { @Override public Optional<String> suppress(ColumnSpecification column, ByteBuffer value) { return containsBlob(column.type) ? Optional.of(suppressWithType(column)) : Optional.empty(); }  @Override Optional<String> suppress(ColumnSpecification column, ByteBuffer value);  }