ParcelableSubject


class ParcelableSubjectParcelable?> : Subject

Testing subject for Parcelables.

Summary

Public functions

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

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

java-static Subject.Factory<ParcelableSubject!, T!>!
Parcelable?> parcelables()
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 Parcelable?> assertThat(parcelable: T!): ParcelableSubject!

marshallsEquallyTo

fun marshallsEquallyTo(other: Parcelable!): Unit

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

parcelables

java-static fun Parcelable?> parcelables(): Subject.Factory<ParcelableSubject!, T!>!

recreatesEqual

fun recreatesEqual(creator: Parcelable.Creator!): Unit

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