DataSourceContractTest.TestResource.Builder


class DataSourceContractTest.TestResource.Builder


Builder for TestResource instances.

Summary

Public constructors

Public functions

DataSourceContractTest.TestResource!
DataSourceContractTest.TestResource.Builder!

Sets the expected contents of this resource.

DataSourceContractTest.TestResource.Builder!

Sets a human-readable name for this resource which will be shown in test failure messages.

DataSourceContractTest.TestResource.Builder!

Sets the URI where this resource is located.

DataSourceContractTest.TestResource.Builder!

Sets the URI where this resource is located.

Public constructors

Builder

Builder()

Public functions

setExpectedBytes

@CanIgnoreReturnValue
fun setExpectedBytes(expectedBytes: ByteArray!): DataSourceContractTest.TestResource.Builder!

Sets the expected contents of this resource.

Must be at least 5 bytes.

setName

@CanIgnoreReturnValue
fun setName(name: String!): DataSourceContractTest.TestResource.Builder!

Sets a human-readable name for this resource which will be shown in test failure messages.

setUri

@CanIgnoreReturnValue
fun setUri(uri: String!): DataSourceContractTest.TestResource.Builder!

Sets the URI where this resource is located.

setUri

@CanIgnoreReturnValue
fun setUri(uri: Uri!): DataSourceContractTest.TestResource.Builder!

Sets the URI where this resource is located.