SparseBooleanArraySubject


class SparseBooleanArraySubject : Subject


Subject for making assertions about SparseBooleanArrays.

Summary

Public functions

java-static SparseBooleanArraySubject!

Begins an assertion on a SparseBooleanArray

Unit

Assert that a SparseBooleanArray contains the given key

Unit

Assert that a SparseBooleanArray doesn't contain the given key

java-static AssertionError!

Begins an assertion on a SparseBooleanArray where a predicate is expected to fail

Unit

Assert that a SparseBooleanArray for the given key returns the value false

Unit
hasSize(size: Int)

Assert that a SparseBooleanArray has size

Unit

Assert that a SparseBooleanArray for the given key returns the value true

Unit

Assert that a SparseBooleanArray is empty

Unit

Assert that a SparseBooleanArray is not empty

Inherited functions

From com.google.common.truth.Subject
String!
Boolean
equals(o: Any!)

This function is deprecated.

Unit
failWithActual(key: String!, value: Any!)
Unit
failWithoutActual(first: Fact!, rest: Array<Fact!>!)
Int

This function is deprecated.

StandardSubjectBuilder!
Unit
isAnyOf(first: Any!, second: Any!, rest: Array<Any!>!)
Unit
isEqualTo(expected: Any!)
Unit
isIn(iterable: (Mutable)Iterable<Any!>!)
Unit
isInstanceOf(clazz: Class<Any!>!)
Unit
isNoneOf(first: Any!, second: Any!, rest: Array<Any!>!)
Unit
isNotEqualTo(unexpected: Any!)
Unit
isNotIn(iterable: (Mutable)Iterable<Any!>!)
Unit
Unit
Unit
isNotSameInstanceAs(unexpected: Any!)
Unit
Unit
isSameInstanceAs(expected: Any!)
String!

This function is deprecated.

Public functions

assertThat

java-static fun assertThat(actual: SparseBooleanArray!): SparseBooleanArraySubject!

Begins an assertion on a SparseBooleanArray

containsKey

fun containsKey(key: Int): Unit

Assert that a SparseBooleanArray contains the given key

doesNotContainKey

fun doesNotContainKey(key: Int): Unit

Assert that a SparseBooleanArray doesn't contain the given key

expectFailure

java-static fun expectFailure(
    callback: ExpectFailure.SimpleSubjectBuilderCallback<SparseBooleanArraySubject!, SparseBooleanArray!>!
): AssertionError!

Begins an assertion on a SparseBooleanArray where a predicate is expected to fail

hasFalseValueAt

fun hasFalseValueAt(key: Int): Unit

Assert that a SparseBooleanArray for the given key returns the value false

hasSize

fun hasSize(size: Int): Unit

Assert that a SparseBooleanArray has size

hasTrueValueAt

fun hasTrueValueAt(key: Int): Unit

Assert that a SparseBooleanArray for the given key returns the value true

isEmpty

fun isEmpty(): Unit

Assert that a SparseBooleanArray is empty

isNotEmpty

fun isNotEmpty(): Unit

Assert that a SparseBooleanArray is not empty