{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class ParcelableSubject<T extends Parcelable>
Testing subject for Parcelables.
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 void marshallsEquallyTo(Parcelable other)
Asserts that the subject serializes to the same bytes as some other one.
public void recreatesEqual(Creator<T> creator)
Asserts that the subject is equal to itself after it goes through marshall/unmarshall cycle.