{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class BundleSubject
Subject for making assertions about Bundles.
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
static BundleSubject |
assertThat(Bundle bundle) |
BooleanSubject |
|
static Factory<BundleSubject, Bundle> |
bundles() |
void |
containsKey(String key) |
void |
doesNotContainKey(String key) |
DoubleSubject |
doubleFloat(String key) |
void |
hasSize(int size) |
IntegerSubject |
|
void |
isEmpty() |
void |
|
LongSubject |
|
ParcelableSubject<T> |
<T extends Parcelable> parcelable(String key) |
IterableSubject |
|
SubjectT |
<T extends Parcelable, SubjectT extends Subject> parcelableAsType( |
Subject |
serializable(String key)Returns a truth subject for the value associated with the given key. |
StringSubject |
|
ObjectArraySubject<String> |
stringArray(String key) |
IterableSubject |
stringArrayList(String key) |
public SubjectT <T extends Parcelable, SubjectT extends Subject> parcelableAsType(
String key,
Factory<SubjectT, T> subjectFactory
)
public Subject serializable(String key)
Returns a truth subject for the value associated with the given key.