DataSourceContractTest.TestResource


public final class DataSourceContractTest.TestResource


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

Summary

Nested types

Builder for TestResource instances.

Public fields

final byte[]
final @Nullable String
final Uri

Public methods

byte[]

Returns the expected contents of this resource.

@Nullable String

Returns a human-readable name for the resource, for use in test failure messages.

Uri

Returns the URI where the resource is available.

Public fields

expectedBytes

public final byte[] expectedBytes

name

public final @Nullable String name

uri

public final Uri uri

Public methods

getExpectedBytes

public byte[] getExpectedBytes()

Returns the expected contents of this resource.

getName

public @Nullable String getName()

Returns a human-readable name for the resource, for use in test failure messages.

getUri

public Uri getUri()

Returns the URI where the resource is available.