()
| 262 | } |
| 263 | |
| 264 | @Test |
| 265 | void pacProxyToJson() { |
| 266 | Proxy proxy = new Proxy(); |
| 267 | proxy.setProxyType(ProxyType.PAC); |
| 268 | proxy.setProxyAutoconfigUrl("http://aaa/bbb.pac"); |
| 269 | |
| 270 | Map<String, Object> json = proxy.toJson(); |
| 271 | |
| 272 | assertThat(json.get("proxyType")).isEqualTo("pac"); |
| 273 | assertThat(json.get("proxyAutoconfigUrl")).isEqualTo("http://aaa/bbb.pac"); |
| 274 | assertThat(json.entrySet()).hasSize(2); |
| 275 | } |
| 276 | |
| 277 | @Test |
| 278 | void autodetectProxyFromMap() { |
nothing calls this directly
no test coverage detected