MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / pacProxyFromMap

Method pacProxyFromMap

java/test/org/openqa/selenium/ProxyTest.java:242–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240 }
241
242 @Test
243 void pacProxyFromMap() {
244 Map<String, String> proxyData = new HashMap<>();
245 proxyData.put("proxyType", "PAC");
246 proxyData.put("proxyAutoconfigUrl", "http://aaa/bbb.pac");
247
248 Proxy proxy = new Proxy(proxyData);
249
250 assertThat(proxy.getProxyType()).isEqualTo(PAC);
251 assertThat(proxy.getProxyAutoconfigUrl()).isEqualTo("http://aaa/bbb.pac");
252
253 assertThat(proxy.getFtpProxy()).isNull();
254 assertThat(proxy.getHttpProxy()).isNull();
255 assertThat(proxy.getSslProxy()).isNull();
256 assertThat(proxy.getSocksProxy()).isNull();
257 assertThat(proxy.getSocksVersion()).isNull();
258 assertThat(proxy.getSocksUsername()).isNull();
259 assertThat(proxy.getSocksPassword()).isNull();
260 assertThat(proxy.getNoProxy()).isNull();
261 assertThat(proxy.isAutodetect()).isFalse();
262 }
263
264 @Test
265 void pacProxyToJson() {

Callers

nothing calls this directly

Calls 13

getProxyTypeMethod · 0.95
getProxyAutoconfigUrlMethod · 0.95
getFtpProxyMethod · 0.95
getHttpProxyMethod · 0.95
getSslProxyMethod · 0.95
getSocksProxyMethod · 0.95
getSocksVersionMethod · 0.95
getSocksUsernameMethod · 0.95
getSocksPasswordMethod · 0.95
getNoProxyMethod · 0.95
isAutodetectMethod · 0.95
isNullMethod · 0.80

Tested by

no test coverage detected