ParcelableSubject

public final class ParcelableSubject<T extends Parcelable>


Testing subject for Parcelables.

Summary

Public constructors

Public methods

static ParcelableSubject<T>
<T extends Parcelable> assertThat(T parcelable)
void
marshallsEquallyTo(Parcelable other)

Asserts that the subject serializes to the same bytes as some other one.

static Factory<ParcelableSubject<T>, T>
<T extends Parcelable> parcelables()
void
recreatesEqual(Creator<T> creator)

Asserts that the subject is equal to itself after it goes through marshall/unmarshall cycle.

Public constructors

ParcelableSubject

public ParcelableSubject()

Public methods

assertThat

public static ParcelableSubject<T> <T extends Parcelable> assertThat(T parcelable)

marshallsEquallyTo

public void marshallsEquallyTo(Parcelable other)

Asserts that the subject serializes to the same bytes as some other one.

parcelables

public static Factory<ParcelableSubject<T>, T> <T extends Parcelable> parcelables()

recreatesEqual

public void recreatesEqual(Creator<T> creator)

Asserts that the subject is equal to itself after it goes through marshall/unmarshall cycle.