ParcelableSubject


class ParcelableSubject<T : Parcelable?> : Subject


Testing subject for Parcelables.

Summary

Public functions

java-static ParcelableSubject<T!>!
<T : Parcelable?> assertThat(parcelable: T!)
Unit

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

java-static Subject.Factory<ParcelableSubject<T!>!, T!>!
Unit

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

Inherited functions

From com.google.common.truth.Subject
String!
Boolean
equals(o: Any?)

This function is deprecated.

Unit
failWithActual(key: String!, value: Any?)
Unit
failWithoutActual(first: Fact!, rest: Array<Fact!>!)
Int

This function is deprecated.

StandardSubjectBuilder!
Unit
isAnyOf(first: Any?, second: Any?, rest: Array<Any?>?)
Unit
isEqualTo(expected: Any?)
Unit
isIn(iterable: (Mutable)Iterable<Any!>?)
Unit
isInstanceOf(clazz: Class<Any!>!)
Unit
isNoneOf(first: Any?, second: Any?, rest: Array<Any?>?)
Unit
isNotEqualTo(unexpected: Any?)
Unit
isNotIn(iterable: (Mutable)Iterable<Any!>?)
Unit
Unit
Unit
isNotSameInstanceAs(unexpected: Any?)
Unit
Unit
isSameInstanceAs(expected: Any?)
String!

This function is deprecated.

Public functions

assertThat

java-static fun <T : Parcelable?> assertThat(parcelable: T!): ParcelableSubject<T!>!

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.