BundleSubject

public final class BundleSubject
extends Subject<BundleSubjectBundle>

java.lang.Object
   ↳ com.google.common.truth.Subject<androidx.test.ext.truth.os.BundleSubjectandroid.os.Bundle>
     ↳ androidx.test.ext.truth.os.BundleSubject


Subject for making assertions about Bundles.

Summary

Public methods

static BundleSubject assertThat(Bundle bundle)
BooleanSubject bool(String key)
static Factory<BundleSubjectBundle> bundles()
void containsKey(String key)
void doesNotContainKey(String key)
void hasSize(int size)
IntegerSubject integer(String key)
void isEmpty()
void isNotEmpty()
LongSubject longInt(String key)
<T extends Parcelable> ParcelableSubject<T> parcelable(String key)
<T extends Parcelable, SubjectT extends Subject<SubjectT, T>> SubjectT parcelableAsType(String key, Factory<SubjectT, T> subjectFactory)
StringSubject string(String key)

Inherited methods

From class com.google.common.truth.Subject
From class java.lang.Object

Public methods

assertThat

BundleSubject assertThat (Bundle bundle)

Parameters
bundle Bundle

Returns
BundleSubject

bool

BooleanSubject bool (String key)

Parameters
key String

Returns
BooleanSubject

bundles

Factory<BundleSubjectBundle> bundles ()

Returns
Factory<BundleSubjectBundle>

containsKey

void containsKey (String key)

Parameters
key String

doesNotContainKey

void doesNotContainKey (String key)

Parameters
key String

hasSize

void hasSize (int size)

Parameters
size int

integer

IntegerSubject integer (String key)

Parameters
key String

Returns
IntegerSubject

isEmpty

void isEmpty ()

isNotEmpty

void isNotEmpty ()

longInt

LongSubject longInt (String key)

Parameters
key String

Returns
LongSubject

parcelable

ParcelableSubject<T> parcelable (String key)

Parameters
key String

Returns
ParcelableSubject<T>

parcelableAsType

SubjectT parcelableAsType (String key, 
                Factory<SubjectT, T> subjectFactory)

Parameters
key String

subjectFactory Factory

Returns
SubjectT

string

StringSubject string (String key)

Parameters
key String

Returns
StringSubject