Fix incorrect DataSourceContractTest test names

These should have been updated as part of
1affbf9357

#minor-release

PiperOrigin-RevId: 392913561
This commit is contained in:
ibaker 2021-08-25 17:27:14 +01:00 committed by bachinger
parent 9fad5f4130
commit e5a39eca1e
2 changed files with 4 additions and 5 deletions

View file

@ -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]")

View file

@ -217,7 +217,7 @@ public abstract class DataSourceContractTest {
}
@Test
public void dataSpecWithPositionAtEnd_throwsPositionOutOfRangeException() throws Exception {
public void dataSpecWithPositionAtEnd_readsZeroBytes() throws Exception {
ImmutableList<TestResource> 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<TestResource> resources = getTestResources();
Assertions.checkArgument(!resources.isEmpty(), "Must provide at least one test resource.");