()
| 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() { |
nothing calls this directly
no test coverage detected