PersistableBundleSubject


@RequiresApi(value = Build.VERSION_CODES.LOLLIPOP)
class PersistableBundleSubject : Subject


Subject for making assertions about PersistableBundles.

To assert about "regular" android.os.Bundles, use BundleSubject.

Summary

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 assertThat(persistableBundle: PersistableBundle!): PersistableBundleSubject!

bool

@RequiresApi(value = Build.VERSION_CODES.LOLLIPOP_MR1)
fun bool(key: String!): BooleanSubject!

containsKey

fun containsKey(key: String!): Unit

doesNotContainKey

fun doesNotContainKey(key: String!): Unit

doubleFloat

fun doubleFloat(key: String): DoubleSubject

hasSize

fun hasSize(size: Int): Unit

integer

fun integer(key: String!): IntegerSubject!

isEmpty

fun isEmpty(): Unit

isNotEmpty

fun isNotEmpty(): Unit

longInt

fun longInt(key: String!): LongSubject!

persistableBundle

fun persistableBundle(key: String!): PersistableBundleSubject!

persistableBundles

java-static fun persistableBundles(): Subject.Factory<PersistableBundleSubject!, PersistableBundle!>!

string

fun string(key: String!): StringSubject!

stringArray

fun stringArray(key: String): ObjectArraySubject<String!>