lightbulb_outline Please take our October 2018 developer survey. Start survey

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)
static Factory<BundleSubjectBundle> bundles()
void containsKey(String key)
void doesNotContainKey(String key)
void hasSize(int size)
IntegerSubject integer(String key)
void isEmpty()
void isNotEmpty()
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

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 ()

string

StringSubject string (String key)

Parameters
key String

Returns
StringSubject