DataSourceContractTest.TestResource.Builder


public final class DataSourceContractTest.TestResource.Builder


Builder for TestResource instances.

Summary

Public constructors

Public methods

DataSourceContractTest.TestResource
DataSourceContractTest.TestResource.Builder
@CanIgnoreReturnValue
setExpectedBytes(byte[] expectedBytes)

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

public Builder()

Public methods

setExpectedBytes

@CanIgnoreReturnValue
public DataSourceContractTest.TestResource.Builder setExpectedBytes(byte[] expectedBytes)

Sets the expected contents of this resource.

Must be at least 5 bytes.

setName

@CanIgnoreReturnValue
public DataSourceContractTest.TestResource.Builder setName(String name)

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

setUri

@CanIgnoreReturnValue
public DataSourceContractTest.TestResource.Builder setUri(String uri)

Sets the URI where this resource is located.

setUri

@CanIgnoreReturnValue
public DataSourceContractTest.TestResource.Builder setUri(Uri uri)

Sets the URI where this resource is located.