ParcelableSubject
Artifact: androidx.test.ext:truth
class ParcelableSubject<T : Parcelable?> : Subject
Testing subject for Parcelables.
Summary
Public functions |
|
|---|---|
java-static ParcelableSubject<T!>! |
<T : Parcelable?> assertThat(parcelable: T!) |
Unit |
marshallsEquallyTo(other: Parcelable!)Asserts that the subject serializes to the same bytes as some other one. |
java-static Subject.Factory<ParcelableSubject<T!>!, T!>! |
<T : Parcelable?> parcelables() |
Unit |
recreatesEqual(creator: Parcelable.Creator<T!>!)Asserts that the subject is equal to itself after it goes through marshall/unmarshall cycle. |
Inherited functions |
||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public functions
marshallsEquallyTo
fun marshallsEquallyTo(other: Parcelable!): Unit
Asserts that the subject serializes to the same bytes as some other one.
parcelables
java-static fun <T : Parcelable?> parcelables(): Subject.Factory<ParcelableSubject<T!>!, T!>!
recreatesEqual
fun recreatesEqual(creator: Parcelable.Creator<T!>!): Unit
Asserts that the subject is equal to itself after it goes through marshall/unmarshall cycle.