Package me.proton.core.test.kotlin

Types

CoroutinesTest
Link copied to clipboard
interface CoroutinesTest
An interface meant to be implemented by a Test Suite that uses Complex Concurrency via Coroutines.
CoroutinesTestRule
Link copied to clipboard
class CoroutinesTestRule : TestWatcher
A JUnit Test Rule that set a Main Dispatcher

Functions

assertEquals
Link copied to clipboard
fun <T> assertEquals(expected: T, actual: T, message: () -> String)
Asserts that the expected value is equal to the actual value, with a message Note that the message is not evaluated lazily, the lambda is only cosmetic
assertIs
Link copied to clipboard
inline fun <EXPECTED> assertIs(actual: Any?)
Asserts that `is`EXPECTED.
assertTrue
Link copied to clipboard
fun assertTrue(actual: Boolean, lazyMessage: () -> String)
Asserts that the expression is true with a lazy message

Properties

coroutinesTest
Link copied to clipboard
val coroutinesTest: CoroutinesTest
TestDispatcherProvider
Link copied to clipboard
val TestDispatcherProvider: DispatcherProvider
Implementation of DispatcherProvider meant to be used for tests