From 9d2855c31ff1fc575e1cc6f04dd3087f57efab9c Mon Sep 17 00:00:00 2001 From: ibaker Date: Thu, 17 Dec 2020 14:22:55 +0000 Subject: [PATCH] Add @Test to overridden test in UdpDataSourceContractTest With @Ignore but not @Test the method is still executed by JUnit: https://github.com/junit-team/junit4/issues/695 PiperOrigin-RevId: 348009981 --- .../exoplayer2/upstream/UdpDataSourceContractTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/core/src/test/java/com/google/android/exoplayer2/upstream/UdpDataSourceContractTest.java b/library/core/src/test/java/com/google/android/exoplayer2/upstream/UdpDataSourceContractTest.java index 65b34eef53..124f4d0140 100644 --- a/library/core/src/test/java/com/google/android/exoplayer2/upstream/UdpDataSourceContractTest.java +++ b/library/core/src/test/java/com/google/android/exoplayer2/upstream/UdpDataSourceContractTest.java @@ -30,6 +30,7 @@ import java.net.InetAddress; import java.net.SocketException; import org.junit.Before; import org.junit.Ignore; +import org.junit.Test; import org.junit.runner.RunWith; /** {@link DataSource} contract tests for {@link UdpDataSource}. */ @@ -73,8 +74,9 @@ public class UdpDataSourceContractTest extends DataSourceContractTest { return Uri.parse("udp://notfound.invalid:12345"); } - @Override + @Test @Ignore("UdpDataSource doesn't support DataSpec's position or length [internal: b/175856954]") + @Override public void dataSpecWithPosition_readUntilEnd() {} /**