TestCollectionAssert

class TestCollectionAssert(testCollection: TestCollection) : AbstractAssert<TestCollectionAssert, TestCollection>

Constructors

Link copied to clipboard
constructor(testCollection: TestCollection)

Properties

Link copied to clipboard
var info: WritableAssertionInfo

Functions

Link copied to clipboard
Link copied to clipboard
open fun as(descriptionSupplier: Supplier<String>): TestCollectionAssert
open fun as(description: Description): TestCollectionAssert
open fun as(description: String, vararg args: Any): TestCollectionAssert
Link copied to clipboard
open override fun <ASSERT : AbstractAssert<*, *>> asInstanceOf(instanceOfAssertFactory: InstanceOfAssertFactory<*, ASSERT>): ASSERT
Link copied to clipboard
open override fun asList(): AbstractListAssert<*, MutableList<*>, Any, ObjectAssert<Any>>
Link copied to clipboard
open override fun asString(): AbstractStringAssert<*>
Link copied to clipboard

Assert the presence of equivalent components. Child parameters like id and isSticky are not compared.

Link copied to clipboard

Assert the components are exactly equivalent to the given list. Child parameters like id and isSticky are not compared.

Link copied to clipboard
open override fun describedAs(description: Description): TestCollectionAssert
open fun describedAs(descriptionSupplier: Supplier<String>): TestCollectionAssert
open fun describedAs(description: String, vararg args: Any): TestCollectionAssert
Link copied to clipboard
Link copied to clipboard

Assert the absence of equivalent components. Child parameters like id andisSticky are not compared.

Link copied to clipboard
open override fun doesNotHave(condition: Condition<in TestCollection>): TestCollectionAssert
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun doesNotHaveToString(otherToString: String): TestCollectionAssert
open override fun doesNotHaveToString(expectedStringTemplate: String, vararg args: Any): TestCollectionAssert
Link copied to clipboard

Assert visible views within the collection does not have the textRes's text as its text.

Assert visible views within the collection does not have the text as its text.

Link copied to clipboard
open fun doesNotMatch(predicate: Predicate<in TestCollection>, predicateDescription: String): TestCollectionAssert
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun getWritableAssertionInfo(): WritableAssertionInfo
Link copied to clipboard
open override fun has(condition: Condition<in TestCollection>): TestCollectionAssert
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun hasSameClassAs(other: Any): TestCollectionAssert
Link copied to clipboard
open override fun hasSameHashCodeAs(other: Any): TestCollectionAssert
Link copied to clipboard

Assert the number of items in the collection.

Link copied to clipboard
open override fun hasToString(expectedToString: String): TestCollectionAssert
open override fun hasToString(expectedStringTemplate: String, vararg args: Any): TestCollectionAssert
Link copied to clipboard

Assert visible views within the collection has the textRes's text as its text.

Assert visible views within the collection has the text as its text.

Link copied to clipboard
open override fun is(condition: Condition<in TestCollection>): TestCollectionAssert
Link copied to clipboard
open override fun isEqualTo(expected: Any): TestCollectionAssert
Link copied to clipboard
open override fun isExactlyInstanceOf(type: Class<*>): TestCollectionAssert
Link copied to clipboard
open override fun isIn(vararg values: Any): TestCollectionAssert
open override fun isIn(values: MutableIterable<*>): TestCollectionAssert
Link copied to clipboard
open override fun isInstanceOf(type: Class<*>): TestCollectionAssert
Link copied to clipboard
open override fun isInstanceOfAny(vararg types: Class<*>): TestCollectionAssert
Link copied to clipboard
open override fun <T : Any> isInstanceOfSatisfying(type: Class<T>, requirements: Consumer<T>): TestCollectionAssert
Link copied to clipboard
open override fun isNot(condition: Condition<in TestCollection>): TestCollectionAssert
Link copied to clipboard
open override fun isNotEqualTo(other: Any): TestCollectionAssert
Link copied to clipboard
Link copied to clipboard
open override fun isNotIn(vararg values: Any): TestCollectionAssert
open override fun isNotIn(values: MutableIterable<*>): TestCollectionAssert
Link copied to clipboard
open override fun isNotInstanceOf(type: Class<*>): TestCollectionAssert
Link copied to clipboard
open override fun isNotInstanceOfAny(vararg types: Class<*>): TestCollectionAssert
Link copied to clipboard
open override fun isNotNull(): TestCollectionAssert
Link copied to clipboard
open override fun isNotOfAnyClassIn(vararg types: Class<*>): TestCollectionAssert
Link copied to clipboard
open override fun isNotSameAs(other: Any): TestCollectionAssert
Link copied to clipboard
open override fun isNull()
Link copied to clipboard
open override fun isOfAnyClassIn(vararg types: Class<*>): TestCollectionAssert
Link copied to clipboard
open override fun isSameAs(expected: Any): TestCollectionAssert
Link copied to clipboard
open fun matches(predicate: Predicate<in TestCollection>, predicateDescription: String): TestCollectionAssert
Link copied to clipboard

Assert a condition on a child with a given id.

fun onChild(withIndex: Int, condition: (TestCollectionItem) -> Boolean): TestCollectionAssert

Assert a condition on a child at a given index.

Link copied to clipboard

Assert a condition on every item.

Assert a condition on all items filtered by the given predicate.

Link copied to clipboard

Assert a condition on the first child.

Link copied to clipboard

Assert a condition on the last child.

Link copied to clipboard
Link copied to clipboard
fun satisfies(vararg assertions: ThrowingConsumer<in TestCollection>): TestCollectionAssert
open override fun satisfies(condition: Condition<in TestCollection>): TestCollectionAssert
Link copied to clipboard
Link copied to clipboard
open override fun usingComparator(customComparator: Comparator<in TestCollection>): TestCollectionAssert
open override fun usingComparator(customComparator: Comparator<in TestCollection>, customComparatorDescription: String): TestCollectionAssert
Link copied to clipboard
Link copied to clipboard
open override fun usingEquals(predicate: BiPredicate<in TestCollection, in TestCollection>, customEqualsDescription: String): TestCollectionAssert
Link copied to clipboard
open fun withFailMessage(newErrorMessage: String, vararg args: Any): TestCollectionAssert
Link copied to clipboard
open override fun withRepresentation(representation: Representation): TestCollectionAssert
Link copied to clipboard