EncryptRule implements ShardingSphereRule { public Collection<String> getAssistedQueryAndPlainColumns(final String logicTable) { Collection<String> result = new LinkedList<>(); result.addAll(getAssistedQueryColumns(logicTable)); result.addAll(getPlainColumns(logicTable)); return result; } EncryptRule(final EncryptRuleConfiguration config);  EncryptRule(final AlgorithmProvidedEncryptRuleConfiguration config); Collection<String> getEncryptTableNames(); Optional<EncryptTable> findEncryptTable(final String logicTable); Optional<EncryptAlgorithm> findEncryptor(final String logicTable, final String logicColumn); List<Object> getEncryptValues(final String logicTable, final String logicColumn, final List<Object> originalValues); boolean isCipherColumn(final String tableName, final String columnName); String getCipherColumn(final String logicTable, final String logicColumn); String getLogicColumnOfCipher(final String logicTable, final String cipherColumn); Map<String, String> getLogicAndCipherColumns(final String logicTable); Optional<String> findAssistedQueryColumn(final String logicTable, final String logicColumn); Collection<String> getAssistedQueryColumns(final String logicTable); List<Object> getEncryptAssistedQueryValues(final String logicTable, final String logicColumn, final List<Object> originalValues); Collection<String> getAssistedQueryAndPlainColumns(final String logicTable); Optional<String> findPlainColumn(final String logicTable, final String logicColumn);  }
@Test public void assertGetAssistedQueryAndPlainColumns() { assertFalse(new EncryptRule(createEncryptRuleConfiguration()).getAssistedQueryAndPlainColumns("t_encrypt").isEmpty()); }