Asserter

interface Asserter

Container which holds actual references of proxy calls. The references are ordered by their invocation.

Author

Matthias Geisler

Functions

clear
Link copied to clipboard
common
abstract fun clear()
Clears the Container

Properties

references
Link copied to clipboard
common
abstract val references: List<KMockContract.Reference>
Holds the actual references

Extensions

assertOrder
Link copied to clipboard
common
fun KMockContract.Asserter.assertOrder(action: KMockContract.ChainedAssertion.() -> Any)
Asserts a chain of Expectations.
asyncAssertOrder
Link copied to clipboard
common
suspend fun KMockContract.Asserter.asyncAssertOrder(action: suspend KMockContract.ChainedAssertion.() -> Any)
Asserts a chain of Expectations in a coroutine Context.
asyncVerifyOrder
Link copied to clipboard
common
suspend fun KMockContract.Asserter.asyncVerifyOrder(action: suspend KMockContract.ChainedAssertion.() -> Any)
Verifies a chain of Expectations in a Coroutine Context.
asyncVerifyStrictOrder
Link copied to clipboard
common
suspend fun KMockContract.Asserter.asyncVerifyStrictOrder(action: suspend KMockContract.ChainedAssertion.() -> Any)
Verifies a chain of Expectations in a Coroutine Context.
verifyOrder
Link copied to clipboard
common
fun KMockContract.Asserter.verifyOrder(action: KMockContract.ChainedAssertion.() -> Any)
Verifies a chain of Expectations.
verifyStrictOrder
Link copied to clipboard
common
fun KMockContract.Asserter.verifyStrictOrder(action: KMockContract.ChainedAssertion.() -> Any)
Verifies a chain of Expectations.