Commit 9d2855c3 by ibaker Committed by Oliver Woodman

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
parent e6d87414
...@@ -30,6 +30,7 @@ import java.net.InetAddress; ...@@ -30,6 +30,7 @@ import java.net.InetAddress;
import java.net.SocketException; import java.net.SocketException;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore; import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
/** {@link DataSource} contract tests for {@link UdpDataSource}. */ /** {@link DataSource} contract tests for {@link UdpDataSource}. */
...@@ -73,8 +74,9 @@ public class UdpDataSourceContractTest extends DataSourceContractTest { ...@@ -73,8 +74,9 @@ public class UdpDataSourceContractTest extends DataSourceContractTest {
return Uri.parse("udp://notfound.invalid:12345"); return Uri.parse("udp://notfound.invalid:12345");
} }
@Override @Test
@Ignore("UdpDataSource doesn't support DataSpec's position or length [internal: b/175856954]") @Ignore("UdpDataSource doesn't support DataSpec's position or length [internal: b/175856954]")
@Override
public void dataSpecWithPosition_readUntilEnd() {} public void dataSpecWithPosition_readUntilEnd() {}
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment