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

Method testPACProxy

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 13

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

Tested by

no test coverage detected