ProxySettings { @Nullable public static String replacePipesWithCommasAndClean(@Nullable String exceptions) { return replaceSeparatorAndCleanList(exceptions, "|", ", "); } ProxySettings(@NotNull String proxyType);  ProxySettings(@NotNull Properties properties, @NotNull String proxyType);  ProxySettings(@NotNull HttpConfigurable ideProxySettings); @Nullable static String replaceCommasWithPipesAndClean(@Nullable String exceptions); @Nullable static String replacePipesWithCommasAndClean(@Nullable String exceptions); void applyProxySettings(@NotNull Properties properties); @Nullable String getHost(); void setHost(@Nullable String host); @Nullable String getExceptions(); void setExceptions(@Nullable String exceptions); @Nullable String getUser(); void setUser(@Nullable String user); @Nullable String getPassword(); void setPassword(@Nullable String password); int getPort(); void setPort(int port); void setProxyType(@NotNull String proxyType); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @NonNls static final String HTTP_PROXY_TYPE; @NonNls static final String HTTPS_PROXY_TYPE; }
@Test public void replacePipesWithCommas() { String expected = "*, *.google.com, *, *.google.com, proxy.com, last.com"; assertThat(ProxySettings.replacePipesWithCommasAndClean(TEST_INPUT)).isEqualTo(expected); }