@Test public void should_not_find_some_hard_coded_credentials_because_values_to_ignore_are_set() { HardCodedCredentialsCheck check = new HardCodedCredentialsCheck(); check.setEncryptedCredentialsToIgnore("^(ENC\\(|OBF:).+$"); JavaPropertiesCheckVerifier.verify(check, CheckTestUtils.getTestFile("hard-coded-credentials/hardCodedCredentialsValuesToIgnore.properties")); }
@VisibleForTesting void setEncryptedCredentialsToIgnore(String encryptedCredentialsToIgnore) { this.encryptedCredentialsToIgnore = encryptedCredentialsToIgnore; }
HardCodedCredentialsCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setEncryptedCredentialsToIgnore(String encryptedCredentialsToIgnore) { this.encryptedCredentialsToIgnore = encryptedCredentialsToIgnore; } }
HardCodedCredentialsCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setEncryptedCredentialsToIgnore(String encryptedCredentialsToIgnore) { this.encryptedCredentialsToIgnore = encryptedCredentialsToIgnore; }  }
HardCodedCredentialsCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setEncryptedCredentialsToIgnore(String encryptedCredentialsToIgnore) { this.encryptedCredentialsToIgnore = encryptedCredentialsToIgnore; }  @Override void visitProperty(PropertyTree tree); @Override void validateParameters(); }
HardCodedCredentialsCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setEncryptedCredentialsToIgnore(String encryptedCredentialsToIgnore) { this.encryptedCredentialsToIgnore = encryptedCredentialsToIgnore; }  @Override void visitProperty(PropertyTree tree); @Override void validateParameters();  }