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

Method testPACProxy

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

Source from the content-addressed store, hash-verified

122 }
123
124 @Test
125 void testPACProxy() {
126 Proxy proxy = new Proxy();
127 proxy.setProxyAutoconfigUrl("http://aaa/bbb.pac");
128
129 assertThat(proxy.getProxyType()).isEqualTo(PAC);
130 assertThat(proxy.getProxyAutoconfigUrl()).isEqualTo("http://aaa/bbb.pac");
131
132 assertThat(proxy.getHttpProxy()).isNull();
133 assertThat(proxy.getSslProxy()).isNull();
134 assertThat(proxy.getSocksProxy()).isNull();
135 assertThat(proxy.getSocksVersion()).isNull();
136 assertThat(proxy.getSocksUsername()).isNull();
137 assertThat(proxy.getSocksPassword()).isNull();
138 assertThat(proxy.getNoProxy()).isNull();
139 assertThat(proxy.isAutodetect()).isFalse();
140 }
141
142 @Test
143 void testAutodetectProxy() {

Callers

nothing calls this directly

Calls 12

setProxyAutoconfigUrlMethod · 0.95
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

Tested by

no test coverage detected