Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

ParcelableSubject

public final class ParcelableSubject
extends Subject<ParcelableSubject<T extends Parcelable>, T>

java.lang.Object
   ↳ com.google.common.truth.Subject<androidx.test.ext.truth.os.ParcelableSubject<T extends android.os.Parcelable>, T>
     ↳ androidx.test.ext.truth.os.ParcelableSubject<T extends android.os.Parcelable>


Testing subject for Parcelables.

Summary

Public methods

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

Inherited methods

From class com.google.common.truth.Subject
From class java.lang.Object

Public methods

assertThat

ParcelableSubject<T> assertThat (T parcelable)

Parameters
parcelable T

Returns
ParcelableSubject<T>

parcelables

Factory<ParcelableSubject<T>, T> parcelables ()

Returns
Factory<ParcelableSubject<T>, T>

recreatesEqual

void recreatesEqual (Creator<T> creator)

Parameters
creator Creator