{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class SparseBooleanArraySubject
Subject for making assertions about SparseBooleanArrays.
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
static SparseBooleanArraySubject |
assertThat(SparseBooleanArray actual)Begins an assertion on a SparseBooleanArray |
void |
containsKey(int key)Assert that a SparseBooleanArray contains the given key |
void |
doesNotContainKey(int key)Assert that a SparseBooleanArray doesn't contain the given key |
static AssertionError |
expectFailure(Begins an assertion on a SparseBooleanArray where a predicate is expected to fail |
void |
hasFalseValueAt(int key)Assert that a SparseBooleanArray for the given key returns the value false |
void |
hasSize(int size)Assert that a SparseBooleanArray has size |
void |
hasTrueValueAt(int key)Assert that a SparseBooleanArray for the given key returns the value true |
void |
isEmpty()Assert that a SparseBooleanArray is empty |
void |
Assert that a SparseBooleanArray is not empty |
public static SparseBooleanArraySubject assertThat(SparseBooleanArray actual)
Begins an assertion on a SparseBooleanArray
public void containsKey(int key)
Assert that a SparseBooleanArray contains the given key
public void doesNotContainKey(int key)
Assert that a SparseBooleanArray doesn't contain the given key
public static AssertionError expectFailure(
SimpleSubjectBuilderCallback<SparseBooleanArraySubject, SparseBooleanArray> callback
)
Begins an assertion on a SparseBooleanArray where a predicate is expected to fail
public void hasFalseValueAt(int key)
Assert that a SparseBooleanArray for the given key returns the value false
public void hasTrueValueAt(int key)
Assert that a SparseBooleanArray for the given key returns the value true