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

Method testManualProxy

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

Source from the content-addressed store, hash-verified

99 }
100
101 @Test
102 void testManualProxy() {
103 Proxy proxy = new Proxy();
104
105 proxy
106 .setHttpProxy("http.proxy:1234")
107 .setFtpProxy("ftp.proxy")
108 .setSslProxy("ssl.proxy")
109 .setNoProxy("localhost,127.0.0.*")
110 .setSocksProxy("socks.proxy:65555")
111 .setSocksVersion(5)
112 .setSocksUsername("test1")
113 .setSocksPassword("test2");
114
115 assertThat(proxy.getProxyType()).isEqualTo(MANUAL);
116 assertThat(proxy.getFtpProxy()).isEqualTo("ftp.proxy");
117 assertThat(proxy.getHttpProxy()).isEqualTo("http.proxy:1234");
118 assertThat(proxy.getSslProxy()).isEqualTo("ssl.proxy");
119 assertThat(proxy.getSocksProxy()).isEqualTo("socks.proxy:65555");
120 assertThat(proxy.getSocksVersion()).isEqualTo(5);
121 assertThat(proxy.getSocksUsername()).isEqualTo("test1");
122 assertThat(proxy.getSocksPassword()).isEqualTo("test2");
123 assertThat(proxy.getNoProxy()).isEqualTo("localhost,127.0.0.*");
124
125 assertThat(proxy.getProxyAutoconfigUrl()).isNull();
126 assertThat(proxy.isAutodetect()).isFalse();
127 }
128
129 @Test
130 void testPACProxy() {

Callers

nothing calls this directly

Calls 15

setHttpProxyMethod · 0.95
getProxyTypeMethod · 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
getProxyAutoconfigUrlMethod · 0.95
isAutodetectMethod · 0.95

Tested by

no test coverage detected