|
17 | 17 |
|
18 | 18 | package org.openqa.selenium.grid.router;
|
19 | 19 |
|
20 |
| -import static org.assertj.core.api.Assertions.assertThat; |
21 |
| -import static org.junit.Assert.fail; |
22 |
| - |
23 | 20 | import com.google.common.collect.ImmutableMap;
|
24 |
| - |
25 |
| -import java.lang.management.ManagementFactory; |
26 |
| -import java.net.URI; |
27 |
| -import java.net.URISyntaxException; |
28 |
| -import java.time.Duration; |
29 |
| -import java.time.Instant; |
30 |
| -import javax.management.AttributeNotFoundException; |
31 |
| -import javax.management.InstanceNotFoundException; |
32 |
| -import javax.management.IntrospectionException; |
33 |
| -import javax.management.MBeanAttributeInfo; |
34 |
| -import javax.management.MBeanException; |
35 |
| -import javax.management.MBeanInfo; |
36 |
| -import javax.management.MBeanServer; |
37 |
| -import javax.management.MalformedObjectNameException; |
38 |
| -import javax.management.ObjectName; |
39 |
| -import javax.management.ReflectionException; |
40 |
| - |
41 | 21 | import org.junit.Test;
|
42 | 22 | import org.openqa.selenium.Capabilities;
|
43 | 23 | import org.openqa.selenium.ImmutableCapabilities;
|
44 | 24 | import org.openqa.selenium.events.EventBus;
|
45 | 25 | import org.openqa.selenium.events.local.GuavaEventBus;
|
46 | 26 | import org.openqa.selenium.grid.config.MapConfig;
|
47 | 27 | import org.openqa.selenium.grid.data.Session;
|
| 28 | +import org.openqa.selenium.grid.jmx.JMXHelper; |
48 | 29 | import org.openqa.selenium.grid.node.local.LocalNode;
|
49 | 30 | import org.openqa.selenium.grid.security.Secret;
|
50 | 31 | import org.openqa.selenium.grid.server.BaseServerOptions;
|
51 | 32 | import org.openqa.selenium.grid.sessionqueue.config.NewSessionQueueOptions;
|
52 | 33 | import org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue;
|
53 | 34 | import org.openqa.selenium.grid.testing.TestSessionFactory;
|
54 | 35 | import org.openqa.selenium.net.PortProber;
|
55 |
| -import org.openqa.selenium.remote.server.jmx.JMXHelper; |
56 | 36 | import org.openqa.selenium.remote.tracing.DefaultTestTracer;
|
57 | 37 | import org.openqa.selenium.remote.tracing.Tracer;
|
58 | 38 |
|
| 39 | +import javax.management.AttributeNotFoundException; |
| 40 | +import javax.management.InstanceNotFoundException; |
| 41 | +import javax.management.IntrospectionException; |
| 42 | +import javax.management.MBeanAttributeInfo; |
| 43 | +import javax.management.MBeanException; |
| 44 | +import javax.management.MBeanInfo; |
| 45 | +import javax.management.MBeanServer; |
| 46 | +import javax.management.MalformedObjectNameException; |
| 47 | +import javax.management.ObjectName; |
| 48 | +import javax.management.ReflectionException; |
| 49 | +import java.lang.management.ManagementFactory; |
| 50 | +import java.net.URI; |
| 51 | +import java.net.URISyntaxException; |
| 52 | +import java.time.Duration; |
| 53 | +import java.time.Instant; |
| 54 | + |
| 55 | +import static org.assertj.core.api.Assertions.assertThat; |
| 56 | +import static org.junit.Assert.fail; |
| 57 | + |
59 | 58 | public class JmxTest {
|
60 | 59 |
|
61 | 60 | private final Capabilities CAPS = new ImmutableCapabilities("browserName", "cheese");
|
|
0 commit comments