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