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 4b2115da50..fb01300de6 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 @@ -91,12 +91,12 @@ public class UdpDataSourceContractTest extends DataSourceContractTest { @Test @Ignore("UdpDataSource doesn't support DataSpec's position or length [internal: b/175856954]") @Override - public void dataSpecWithPositionAtEnd_throwsPositionOutOfRangeException() {} + public void dataSpecWithPositionAtEnd_readsZeroBytes() {} @Test @Ignore("UdpDataSource doesn't support DataSpec's position or length [internal: b/175856954]") @Override - public void dataSpecWithPositionAtEndAndLength_throwsPositionOutOfRangeException() {} + public void dataSpecWithPositionAtEndAndLength_readsZeroBytes() {} @Test @Ignore("UdpDataSource doesn't support DataSpec's position or length [internal: b/175856954]") diff --git a/testutils/src/main/java/com/google/android/exoplayer2/testutil/DataSourceContractTest.java b/testutils/src/main/java/com/google/android/exoplayer2/testutil/DataSourceContractTest.java index c785145a53..78bb5ff4cc 100644 --- a/testutils/src/main/java/com/google/android/exoplayer2/testutil/DataSourceContractTest.java +++ b/testutils/src/main/java/com/google/android/exoplayer2/testutil/DataSourceContractTest.java @@ -217,7 +217,7 @@ public abstract class DataSourceContractTest { } @Test - public void dataSpecWithPositionAtEnd_throwsPositionOutOfRangeException() throws Exception { + public void dataSpecWithPositionAtEnd_readsZeroBytes() throws Exception { ImmutableList resources = getTestResources(); Assertions.checkArgument(!resources.isEmpty(), "Must provide at least one test resource."); @@ -248,8 +248,7 @@ public abstract class DataSourceContractTest { } @Test - public void dataSpecWithPositionAtEndAndLength_throwsPositionOutOfRangeException() - throws Exception { + public void dataSpecWithPositionAtEndAndLength_readsZeroBytes() throws Exception { ImmutableList resources = getTestResources(); Assertions.checkArgument(!resources.isEmpty(), "Must provide at least one test resource.");