Procházet zdrojové kódy

Fix some build warnings.

pull/632/head
Chris Smith před 8 roky
rodič
revize
37f13e9f7c

+ 7
- 6
test/com/dmdirc/logger/SentryLoggingErrorManagerTest.java Zobrazit soubor

@@ -35,6 +35,7 @@ import java.util.Optional;
35 35
 import org.junit.Before;
36 36
 import org.junit.Test;
37 37
 import org.junit.runner.RunWith;
38
+import org.mockito.Matchers;
38 39
 import org.mockito.Mock;
39 40
 import org.mockito.runners.MockitoJUnitRunner;
40 41
 
@@ -78,14 +79,14 @@ public class SentryLoggingErrorManagerTest {
78 79
     public void testHandleErrorEvent() throws Exception {
79 80
         instance.handleErrorEvent(appErrorEvent);
80 81
         verify(sentryErrorReporter).sendException(anyString(), any(ErrorLevel.class),
81
-                any(Date.class), any(Optional.class));
82
+                any(Date.class), Matchers.<Optional<Throwable>>any());
82 83
     }
83 84
 
84 85
     @Test
85 86
     public void testHandledErrorEvent_UserError() throws Exception {
86 87
         instance.handleErrorEvent(userErrorEvent);
87 88
         verify(sentryErrorReporter, never()).sendException(anyString(), any(ErrorLevel.class),
88
-                any(Date.class), any(Optional.class));
89
+                any(Date.class), Matchers.<Optional<Throwable>>any());
89 90
     }
90 91
 
91 92
     @Test
@@ -103,7 +104,7 @@ public class SentryLoggingErrorManagerTest {
103 104
         instance.handleNoErrorReporting(false);
104 105
         instance.handleErrorEvent(appErrorEvent);
105 106
         verify(sentryErrorReporter, never()).sendException(anyString(), any(ErrorLevel.class),
106
-                any(Date.class), any(Optional.class));
107
+                any(Date.class), Matchers.<Optional<Throwable>>any());
107 108
     }
108 109
 
109 110
     @Test
@@ -112,7 +113,7 @@ public class SentryLoggingErrorManagerTest {
112 113
         instance.handleNoErrorReporting(true);
113 114
         instance.handleErrorEvent(appErrorEvent);
114 115
         verify(sentryErrorReporter, never()).sendException(anyString(), any(ErrorLevel.class),
115
-                any(Date.class), any(Optional.class));
116
+                any(Date.class), Matchers.<Optional<Throwable>>any());
116 117
     }
117 118
 
118 119
     @Test
@@ -121,7 +122,7 @@ public class SentryLoggingErrorManagerTest {
121 122
         instance.handleNoErrorReporting(false);
122 123
         instance.handleErrorEvent(appErrorEvent);
123 124
         verify(sentryErrorReporter).sendException(anyString(), any(ErrorLevel.class),
124
-                any(Date.class), any(Optional.class));
125
+                any(Date.class), Matchers.<Optional<Throwable>>any());
125 126
     }
126 127
 
127 128
     @Test
@@ -130,6 +131,6 @@ public class SentryLoggingErrorManagerTest {
130 131
         instance.handleNoErrorReporting(true);
131 132
         instance.handleErrorEvent(appErrorEvent);
132 133
         verify(sentryErrorReporter, never()).sendException(anyString(), any(ErrorLevel.class),
133
-                any(Date.class), any(Optional.class));
134
+                any(Date.class), Matchers.<Optional<Throwable>>any());
134 135
     }
135 136
 }

Načítá se…
Zrušit
Uložit