TestNodeCollectionSelection

Lazy representation of a collection of test nodes with necessary logic to materialize on-demand.

Note: materializing the TestNodeSelection should result a collection of test node unless the assertDoesNotExist method is used.

Constructors

Link copied to clipboard
constructor(testContext: TestContext, selector: TestNodeSelector)

Functions

Link copied to clipboard

Asserts that all the nodes in the collection are matching the given matcher.

Link copied to clipboard

Asserts that there is at least one node in the selection that matches matcher.

Link copied to clipboard

Asserts that this selection is defined by count elements.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun TestNodeCollectionSelection.printTo(appendable: Appendable, maxDepth: Int = 0)

Prints all the matching nodes in the collection into the given appendable.

Link copied to clipboard

Prints all the matching nodes in the collection into a string.

Link copied to clipboard

Attempts to select the only node that matches the given matcher.

Link copied to clipboard

Attempts to select all subsequent nodes that match the given matcher.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard