PersistableBundleSubject


@RequiresApi(value = Build.VERSION_CODES.LOLLIPOP)
public final class PersistableBundleSubject extends Subject


Subject for making assertions about PersistableBundles.

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

Summary

Inherited methods

From com.google.common.truth.Subject
String
final boolean

This method is deprecated.

final void
final void
failWithoutActual(Fact first, Fact[] rest)
final int

This method is deprecated.

final StandardSubjectBuilder
void
isAnyOf(Object first, Object second, @Nullable Object[] rest)
void
isEqualTo(Object expected)
void
void
void
isNoneOf(Object first, Object second, @Nullable Object[] rest)
void
isNotEqualTo(Object unexpected)
void
void
void
final void
void
final void
String

This method is deprecated.

Public methods

assertThat

public static PersistableBundleSubject assertThat(PersistableBundle persistableBundle)

bool

@RequiresApi(value = Build.VERSION_CODES.LOLLIPOP_MR1)
public BooleanSubject bool(String key)

containsKey

public void containsKey(String key)

doesNotContainKey

public void doesNotContainKey(String key)

doubleFloat

public @NonNull DoubleSubject doubleFloat(@NonNull 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)

persistableBundle

public PersistableBundleSubject persistableBundle(String key)

string

public StringSubject string(String key)

stringArray

public @NonNull ObjectArraySubject<StringstringArray(@NonNull String key)