File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
libraries/exoplayer/src/test/java/androidx/media3/exoplayer/analytics Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -192,10 +192,18 @@ public final class DefaultAnalyticsCollectorTest {
192
192
private EventWindowAndPeriodId window0Period1Seq0 ;
193
193
private EventWindowAndPeriodId window1Period0Seq1 ;
194
194
195
+ /**
196
+ * Verify that {@link DefaultAnalyticsCollector} explicitly overrides all {@link Player.Listener}
197
+ * methods.
198
+ */
195
199
@ Test
196
200
public void defaultAnalyticsCollector_overridesAllPlayerListenerMethods () throws Exception {
197
- // Verify that AnalyticsCollector forwards all Player.Listener methods to AnalyticsListener.
198
201
for (Method method : Player .Listener .class .getDeclaredMethods ()) {
202
+ if (method .isSynthetic ()) {
203
+ // JaCoCo inserts synthetic methods. See "My code uses reflection. Why does it fail when I
204
+ // execute it with JaCoCo?": https://www.eclemma.org/jacoco/trunk/doc/faq.html
205
+ continue ;
206
+ }
199
207
assertThat (
200
208
DefaultAnalyticsCollector .class
201
209
.getMethod (method .getName (), method .getParameterTypes ())
You can’t perform that action at this time.
0 commit comments