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

Method pacProxyToJson

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

Source from the content-addressed store, hash-verified

249 }
250
251 @Test
252 void pacProxyToJson() {
253 Proxy proxy = new Proxy();
254 proxy.setProxyType(ProxyType.PAC);
255 proxy.setProxyAutoconfigUrl("http://aaa/bbb.pac");
256
257 Map<String, Object> json = proxy.toJson();
258
259 assertThat(json.get("proxyType")).isEqualTo("pac");
260 assertThat(json.get("proxyAutoconfigUrl")).isEqualTo("http://aaa/bbb.pac");
261 assertThat(json.entrySet()).hasSize(2);
262 }
263
264 @Test
265 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