MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / pacProxyFromMap

Method pacProxyFromMap

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

Source from the content-addressed store, hash-verified

228 }
229
230 @Test
231 void pacProxyFromMap() {
232 Map<String, String> proxyData = new HashMap<>();
233 proxyData.put("proxyType", "PAC");
234 proxyData.put("proxyAutoconfigUrl", "http://aaa/bbb.pac");
235
236 Proxy proxy = new Proxy(proxyData);
237
238 assertThat(proxy.getProxyType()).isEqualTo(PAC);
239 assertThat(proxy.getProxyAutoconfigUrl()).isEqualTo("http://aaa/bbb.pac");
240
241 assertThat(proxy.getHttpProxy()).isNull();
242 assertThat(proxy.getSslProxy()).isNull();
243 assertThat(proxy.getSocksProxy()).isNull();
244 assertThat(proxy.getSocksVersion()).isNull();
245 assertThat(proxy.getSocksUsername()).isNull();
246 assertThat(proxy.getSocksPassword()).isNull();
247 assertThat(proxy.getNoProxy()).isNull();
248 assertThat(proxy.isAutodetect()).isFalse();
249 }
250
251 @Test
252 void pacProxyToJson() {

Callers

nothing calls this directly

Calls 12

getProxyTypeMethod · 0.95
getProxyAutoconfigUrlMethod · 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
putMethod · 0.65

Tested by

no test coverage detected