HeliumTestCase

@Config(sdk = [28])
open class HeliumTestCase : TestCase

Convenience base class for unit testing Helium blocks

Constructors

HeliumTestCase
Link copied to clipboard
fun HeliumTestCase()

Functions

assemble
Link copied to clipboard
fun <S : BlockState, E : BlockEvent> assemble(appBlock: AppBlock<S, E>)
Assemble blocks with a mocked lifecycle
countTestCases
Link copied to clipboard
open override fun countTestCases(): Int
createResult
Link copied to clipboard
open fun createResult(): TestResult
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getMockLifecycle
Link copied to clipboard
fun getMockLifecycle(state: Lifecycle.State = Lifecycle.State.CREATED): Lifecycle
Convenience method to mock a lifecycle with a given state.
getName
Link copied to clipboard
open fun getName(): String
hashCode
Link copied to clipboard
open fun hashCode(): Int
run
Link copied to clipboard
open fun run(): TestResult
open override fun run(p0: TestResult)
runBare
Link copied to clipboard
open fun runBare()
runTest
Link copied to clipboard
open fun runTest()
setName
Link copied to clipboard
open fun setName(p0: String)
setUp
Link copied to clipboard
open fun setUp()
tearDown
Link copied to clipboard
open fun tearDown()
toString
Link copied to clipboard
open override fun toString(): String

Properties

coroutinesTestRule
Link copied to clipboard
var coroutinesTestRule: CoroutinesTestRule
mockRule
Link copied to clipboard
var mockRule: MockitoInitializationRule
testCoroutineScope
Link copied to clipboard
val testCoroutineScope: CoroutineScope

Inheritors

HeliumUiTestCase
Link copied to clipboard