HttpDataSourceTestEnv


@UnstableApi
class HttpDataSourceTestEnv : ExternalResource


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

Summary

Public constructors

Protected functions

Unit
Unit

Inherited functions

From org.junit.rules.ExternalResource
Statement!
apply(base: Statement!, description: Description!)

Constants

EXTRA_HEADERS

const val EXTRA_HEADERSImmutableListMultimap<String!, String!>!

GZIP_ENABLED

const val GZIP_ENABLEDWebServerDispatcher.Resource!

GZIP_FORCED

const val GZIP_FORCEDWebServerDispatcher.Resource!

RANGE_NOT_SUPPORTED

const val RANGE_NOT_SUPPORTEDWebServerDispatcher.Resource!

RANGE_NOT_SUPPORTED_LENGTH_UNKNOWN

const val RANGE_NOT_SUPPORTED_LENGTH_UNKNOWNWebServerDispatcher.Resource!

RANGE_SUPPORTED

const val RANGE_SUPPORTEDWebServerDispatcher.Resource!

RANGE_SUPPORTED_LENGTH_UNKNOWN

const val RANGE_SUPPORTED_LENGTH_UNKNOWNWebServerDispatcher.Resource!

REDIRECTS_TO_RANGE_SUPPORTED

const val REDIRECTS_TO_RANGE_SUPPORTEDWebServerDispatcher.Resource!

Public constructors

HttpDataSourceTestEnv

HttpDataSourceTestEnv()

Public functions

getNonexistentUrl

fun getNonexistentUrl(): String!

Protected functions

after

protected fun after(): Unit

before

protected fun before(): Unit