MCPcopy
hub / github.com/SeleniumHQ/selenium / pacProxyToJson

Method pacProxyToJson

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

Source from the content-addressed store, hash-verified

262 }
263
264 @Test
265 void pacProxyToJson() {
266 Proxy proxy = new Proxy();
267 proxy.setProxyType(ProxyType.PAC);
268 proxy.setProxyAutoconfigUrl("http://aaa/bbb.pac");
269
270 Map<String, Object> json = proxy.toJson();
271
272 assertThat(json.get("proxyType")).isEqualTo("pac");
273 assertThat(json.get("proxyAutoconfigUrl")).isEqualTo("http://aaa/bbb.pac");
274 assertThat(json.entrySet()).hasSize(2);
275 }
276
277 @Test
278 void autodetectProxyFromMap() {

Callers

nothing calls this directly

Calls 5

setProxyTypeMethod · 0.95
setProxyAutoconfigUrlMethod · 0.95
toJsonMethod · 0.95
entrySetMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected