@Test public void shouldHandleEmptyUnwiseChars() { ConfigurableUnwiseCharsEncoder encoder = newUnwiseCharsEncoder(""); assertThat(encoder.encode("|}{"), is("|}{")); }
@Override public String encode(String value) { String escaped = escaper.escape(value); if (!Objects.equals(escaped, value)) { logger.warn("Value contains unwise chars. you should fix this. raw={}, escaped={}: ", value, escaped); } return escaped; }
ConfigurableUnwiseCharsEncoder implements UnwiseCharsEncoder { @Override public String encode(String value) { String escaped = escaper.escape(value); if (!Objects.equals(escaped, value)) { logger.warn("Value contains unwise chars. you should fix this. raw={}, escaped={}: ", value, escaped); } return escaped; } }
ConfigurableUnwiseCharsEncoder implements UnwiseCharsEncoder { @Override public String encode(String value) { String escaped = escaper.escape(value); if (!Objects.equals(escaped, value)) { logger.warn("Value contains unwise chars. you should fix this. raw={}, escaped={}: ", value, escaped); } return escaped; } ConfigurableUnwiseCharsEncoder(String unwiseChars);  ConfigurableUnwiseCharsEncoder(StyxConfig config);  ConfigurableUnwiseCharsEncoder(StyxConfig config, Logger logger);  ConfigurableUnwiseCharsEncoder(String unwiseChars, Logger logger); }
ConfigurableUnwiseCharsEncoder implements UnwiseCharsEncoder { @Override public String encode(String value) { String escaped = escaper.escape(value); if (!Objects.equals(escaped, value)) { logger.warn("Value contains unwise chars. you should fix this. raw={}, escaped={}: ", value, escaped); } return escaped; } ConfigurableUnwiseCharsEncoder(String unwiseChars);  ConfigurableUnwiseCharsEncoder(StyxConfig config);  ConfigurableUnwiseCharsEncoder(StyxConfig config, Logger logger);  ConfigurableUnwiseCharsEncoder(String unwiseChars, Logger logger); @Override String encode(String value); }
ConfigurableUnwiseCharsEncoder implements UnwiseCharsEncoder { @Override public String encode(String value) { String escaped = escaper.escape(value); if (!Objects.equals(escaped, value)) { logger.warn("Value contains unwise chars. you should fix this. raw={}, escaped={}: ", value, escaped); } return escaped; } ConfigurableUnwiseCharsEncoder(String unwiseChars);  ConfigurableUnwiseCharsEncoder(StyxConfig config);  ConfigurableUnwiseCharsEncoder(StyxConfig config, Logger logger);  ConfigurableUnwiseCharsEncoder(String unwiseChars, Logger logger); @Override String encode(String value); static final String ENCODE_UNWISECHARS; }