DataSourceContractTest.TestResource


class DataSourceContractTest.TestResource


Information about a resource that can be used to test the DataSource instance.

Summary

Nested types

Builder for TestResource instances.

Public functions

DataSourceContractTest.TestResource.Builder!

Returns a Builder initialized with the values of this instance.

Boolean

Returns whether this resource may not report a length.

Public functions

buildUpon

fun buildUpon(): DataSourceContractTest.TestResource.Builder!

Returns a Builder initialized with the values of this instance.

mayResolveToUnknownLength

fun mayResolveToUnknownLength(): Boolean

Returns whether this resource may not report a length.

Public properties

expectedBytes

val expectedBytes: Array<Byte>!

httpMethod

@DataSpec.HttpMethod
val httpMethod: Int

name

val name: String?

requestBody

val requestBody: Array<Byte>!

requestHeaders

val requestHeaders: ImmutableMap<String!, String!>!

resolvedUri

val resolvedUri: Uri!

responseHeaders

val responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!

unexpectedResponseHeaderKeys

val unexpectedResponseHeaderKeys: (Mutable)Set<String!>!

uri

val uri: Uri!