Skip to content

net.natura.testcommons.rules

Lucas de Souza da Conceição edited this page Jul 10, 2020 · 4 revisions

Package net.natura.testcommons.rules

Types

Name Summary
CoroutinesRule A JUnit4 test rule to allow testing coroutines that use the main dispatcher. Without this you'd run into "java.lang.IllegalStateException: Module with the Main dispatcher had failed to initialize. For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used"class CoroutinesRule : TestRule
IntentsRule A JUnit4 rule that handles Espresso-Intents' init and release calls between tests.class IntentsRule : TestRule
KoinRule A JUnit4 rule that starts and stops Koin instance between tests.class KoinRule : TestRule
Clone this wiki locally