|
17 | 17 |
|
18 | 18 | package org.openqa.selenium.remote;
|
19 | 19 |
|
| 20 | +import static org.hamcrest.Matchers.containsString; |
| 21 | +import static org.hamcrest.Matchers.is; |
| 22 | +import static org.hamcrest.Matchers.not; |
| 23 | +import static org.junit.Assert.assertEquals; |
| 24 | +import static org.junit.Assert.assertFalse; |
| 25 | +import static org.junit.Assert.assertThat; |
| 26 | +import static org.junit.Assert.assertTrue; |
| 27 | +import static org.junit.Assert.fail; |
| 28 | + |
20 | 29 | import com.google.common.collect.ImmutableList;
|
21 | 30 | import com.google.common.collect.ImmutableMap;
|
22 | 31 | import com.google.common.collect.Lists;
|
|
32 | 41 | import org.openqa.selenium.Cookie;
|
33 | 42 | import org.openqa.selenium.Platform;
|
34 | 43 | import org.openqa.selenium.Proxy;
|
35 |
| -import org.openqa.selenium.UnhandledAlertException; |
36 | 44 | import org.openqa.selenium.WebDriverException;
|
37 | 45 | import org.openqa.selenium.logging.LogEntries;
|
38 | 46 | import org.openqa.selenium.logging.LogEntry;
|
|
49 | 57 | import java.util.concurrent.TimeUnit;
|
50 | 58 | import java.util.logging.Level;
|
51 | 59 |
|
52 |
| -import static org.hamcrest.Matchers.containsString; |
53 |
| -import static org.hamcrest.Matchers.is; |
54 |
| -import static org.hamcrest.Matchers.not; |
55 |
| -import static org.junit.Assert.assertEquals; |
56 |
| -import static org.junit.Assert.assertFalse; |
57 |
| -import static org.junit.Assert.assertThat; |
58 |
| -import static org.junit.Assert.assertTrue; |
59 |
| -import static org.junit.Assert.fail; |
60 |
| - |
61 | 60 |
|
62 | 61 | @RunWith(JUnit4.class)
|
63 | 62 | public class BeanToJsonConverterTest {
|
@@ -328,12 +327,6 @@ public void testShouldBeAbleToConvertAWebDriverException() {
|
328 | 327 | verifyStackTraceInJson(raw, stackTrace);
|
329 | 328 | }
|
330 | 329 |
|
331 |
| - @Test |
332 |
| - public void testShouldConverUnhandledAlertException() { |
333 |
| - RuntimeException clientError = new UnhandledAlertException("unhandled alert", "cheese!"); |
334 |
| - assertEquals("{\"alert\":{\"text\":\"cheese!\"}}", new BeanToJsonConverter().convert(clientError)); |
335 |
| - } |
336 |
| - |
337 | 330 | @Test
|
338 | 331 | public void testShouldConvertDatesToMillisecondsInUtcTime() {
|
339 | 332 | String jsonStr = new BeanToJsonConverter().convert(new Date(0));
|
|
0 commit comments