void () { TestScaleHelper.assumeStandalone(); var proxySettings = System.getProperty("idea.test.proxy.settings"); assumeTrue("'idea.test.proxy.settings' not set", proxySettings != null); var matcher = Pattern.compile("(\\w+):([^@]+)@([^:]+):(\\d+)").matcher(proxySettings); // 'user:pass@host:port' assertTrue("cannot parse proxy settings: '" + proxySettings + "'", matcher.matches() && matcher.groupCount() == 4); var proxyPort = Integer.parseInt(matcher.group(4)); JBCefProxySettings.setTestInstance(true, false, false, false, null, matcher.group(3), proxyPort, null, true, matcher.group(1), matcher.group(2)); }