ParcelableSubject


public final class ParcelableSubject<T extends Parcelable> extends Subject


Testing subject for Parcelables.

Summary

Public methods

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

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

static Subject.Factory<ParcelableSubject<T>, T>
<T extends Parcelable> parcelables()
void

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

Inherited methods

From com.google.common.truth.Subject
String
final boolean

This method is deprecated.

final void
final void
failWithoutActual(Fact first, Fact[] rest)
final int

This method is deprecated.

final StandardSubjectBuilder
void
isAnyOf(Object first, Object second, @Nullable Object[] rest)
void
isEqualTo(Object expected)
void
void
void
isNoneOf(Object first, Object second, @Nullable Object[] rest)
void
isNotEqualTo(Object unexpected)
void
void
void
final void
void
final void
String

This method is deprecated.

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 Subject.Factory<ParcelableSubject<T>, T> <T extends Parcelable> parcelables()

recreatesEqual

public void recreatesEqual(Parcelable.Creator<T> creator)

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