|
17 | 17 |
|
18 | 18 | package org.openqa.selenium.grid.node.config; |
19 | 19 |
|
20 | | -import static java.util.Collections.emptyMap; |
21 | | -import static java.util.Collections.emptySet; |
22 | | -import static java.util.Collections.singletonMap; |
23 | | -import static org.assertj.core.api.Assertions.assertThat; |
24 | | -import static org.junit.Assert.fail; |
25 | | -import static org.junit.Assume.assumeFalse; |
26 | | -import static org.junit.Assume.assumeTrue; |
27 | | - |
28 | 20 | import com.google.common.collect.ImmutableMap; |
29 | 21 |
|
30 | 22 | import org.assertj.core.api.Condition; |
|
58 | 50 | import java.util.Map; |
59 | 51 | import java.util.Optional; |
60 | 52 |
|
| 53 | +import static java.util.Collections.emptyMap; |
| 54 | +import static java.util.Collections.emptySet; |
| 55 | +import static java.util.Collections.singletonMap; |
| 56 | +import static org.assertj.core.api.Assertions.assertThat; |
| 57 | +import static org.junit.Assert.fail; |
| 58 | +import static org.junit.Assume.assumeFalse; |
| 59 | +import static org.junit.Assume.assumeTrue; |
| 60 | + |
61 | 61 | @SuppressWarnings("DuplicatedCode") |
62 | 62 | public class NodeOptionsTest { |
63 | 63 |
|
@@ -107,6 +107,12 @@ public void shouldDetectCorrectDriversOnWindows() { |
107 | 107 | assertThat(reported).isNot(supporting("safari")); |
108 | 108 | } |
109 | 109 |
|
| 110 | + @Test |
| 111 | + public void cdpCanBeDisabled() { |
| 112 | + Config config = new MapConfig(singletonMap("node", singletonMap("enable-cdp", "false"))); |
| 113 | + NodeOptions nodeOptions = new NodeOptions(config); |
| 114 | + assertThat(nodeOptions.isCdpEnabled()).isFalse(); |
| 115 | + } |
110 | 116 |
|
111 | 117 | @Test |
112 | 118 | public void shouldDetectCorrectDriversOnMac() { |
|
0 commit comments