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

Method testManualProxy

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 15

setHttpProxyMethod · 0.95
getProxyTypeMethod · 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
setSocksPasswordMethod · 0.80

Tested by

no test coverage detected