HttpDataSourceTestEnv


@UnstableApi
public class HttpDataSourceTestEnv extends ExternalResource


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

Summary

Public constructors

Protected methods

void
void

Inherited methods

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

Constants

EXTRA_HEADERS

public static final ImmutableListMultimap<StringStringEXTRA_HEADERS

GZIP_ENABLED

public static final WebServerDispatcher.Resource GZIP_ENABLED

GZIP_FORCED

public static final WebServerDispatcher.Resource GZIP_FORCED

RANGE_NOT_SUPPORTED

public static final WebServerDispatcher.Resource RANGE_NOT_SUPPORTED

RANGE_NOT_SUPPORTED_LENGTH_UNKNOWN

public static final WebServerDispatcher.Resource RANGE_NOT_SUPPORTED_LENGTH_UNKNOWN

RANGE_SUPPORTED

public static final WebServerDispatcher.Resource RANGE_SUPPORTED

RANGE_SUPPORTED_LENGTH_UNKNOWN

public static final WebServerDispatcher.Resource RANGE_SUPPORTED_LENGTH_UNKNOWN

REDIRECTS_TO_RANGE_SUPPORTED

public static final WebServerDispatcher.Resource REDIRECTS_TO_RANGE_SUPPORTED

Public constructors

HttpDataSourceTestEnv

public HttpDataSourceTestEnv()

Public methods

getNonexistentUrl

public String getNonexistentUrl()

Protected methods

after

protected void after()

before

protected void before()