Stay organized with collections Save and categorize content based on your preferences.

BundleSubject

public final class BundleSubject


Subject for making assertions about Bundles.

Summary

Public constructors

Public methods

static BundleSubject
assertThat(Bundle bundle)
BooleanSubject
bool(String key)
static Factory<BundleSubject, Bundle>
void
void
DoubleSubject
void
hasSize(int size)
IntegerSubject
void
void
LongSubject
ParcelableSubject<T>
<T extends Parcelable> parcelable(String key)
IterableSubject
SubjectT
<T extends Parcelable, SubjectT extends Subject> parcelableAsType(
    String key,
    Factory<SubjectT, T> subjectFactory
)
Subject

Returns a truth subject for the value associated with the given key.

StringSubject
ObjectArraySubject<String>
IterableSubject

Public constructors

BundleSubject

public BundleSubject()

Public methods

assertThat

public static BundleSubject assertThat(Bundle bundle)

bool

public BooleanSubject bool(String key)

bundles

public static Factory<BundleSubject, Bundle> bundles()

containsKey

public void containsKey(String key)

doesNotContainKey

public void doesNotContainKey(String key)

doubleFloat

public DoubleSubject doubleFloat(String key)

hasSize

public void hasSize(int size)

integer

public IntegerSubject integer(String key)

isEmpty

public void isEmpty()

isNotEmpty

public void isNotEmpty()

longInt

public LongSubject longInt(String key)

parcelable

public ParcelableSubject<T> <T extends Parcelable> parcelable(String key)

parcelableArrayList

public IterableSubject parcelableArrayList(String key)

parcelableAsType

public SubjectT <T extends Parcelable, SubjectT extends Subject> parcelableAsType(
    String key,
    Factory<SubjectT, T> subjectFactory
)

serializable

public Subject serializable(String key)

Returns a truth subject for the value associated with the given key.

string

public StringSubject string(String key)

stringArray

public ObjectArraySubject<String> stringArray(String key)

stringArrayList

public IterableSubject stringArrayList(String key)