Back to Exoplayer

HttpDataSourceTestEnv (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/testutil/HttpDataSourceTestEnv.html

latest2.5 KB
Original Source

Package com.google.android.exoplayer2.testutil

Class HttpDataSourceTestEnv

  • java.lang.Object

    • org.junit.rules.ExternalResource
      • com.google.android.exoplayer2.testutil.HttpDataSourceTestEnv
  • All Implemented Interfaces:org.junit.rules.TestRule


@RequiresApi(19)
public classHttpDataSourceTestEnvextends org.junit.rules.ExternalResource

A JUnit Rule that creates test resources for HttpDataSource contract tests.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | HttpDataSourceTestEnv() | |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description | | --- | --- | --- | | protected void | after() | | | protected void | before() | | | String | getNonexistentUrl() | | | ImmutableList<DataSourceContractTest.TestResource> | getServedResources() | |

- 

Methods inherited from class org.junit.rules.ExternalResource

apply

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

HttpDataSourceTestEnv

public HttpDataSourceTestEnv()

Method Detail

- 

getServedResources

public[ImmutableList](https://guava.dev/releases/31.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true "class or interface in com.google.common.collect")<[DataSourceContractTest.TestResource](DataSourceContractTest.TestResource.html "class in com.google.android.exoplayer2.testutil")> getServedResources()
- 

getNonexistentUrl

public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")getNonexistentUrl()
- 

before

protected void before()
               throws[Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")

Overrides:before in class org.junit.rules.ExternalResourceThrows:Throwable

- 

after

protected void after()

Overrides:after in class org.junit.rules.ExternalResource