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 expectedBytesByteArray<Byte>!

httpMethod

@DataSpec.HttpMethod
val httpMethodInt

name

val nameString?

requestBody

val requestBodyByteArray<Byte>!

requestHeaders

val requestHeadersImmutableMap<String!, String!>!

resolvedUri

val resolvedUriUri!

responseHeaders

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

unexpectedResponseHeaderKeys

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

uri

val uriUri!