assertIsOnThread

abstract fun assertIsOnThread()

Asserts isOnThread, throwing a AssertionException (NOT an AssertionError) if the assertion fails.


abstract fun assertIsOnThread(message: String)

Asserts isOnThread, throwing a AssertionException (NOT an AssertionError) if the assertion fails. The given message is appended to the error.