StateUpdatesTestHelper

Helper for writing state update unit tests.

Types

Link copied to clipboard

Functions

Link copied to clipboard
Returns a LithoView after all outstanding asynchronous state updates are performed.
open fun getViewAfterStateUpdate(context: ComponentContext, component: Component, stateUpdater: StateUpdatesTestHelper.StateUpdater, layoutThreadShadowLooper: ShadowLooper): LithoView
Call a state update as specified in performStateUpdate on the component and return the updated view.
open fun getViewAfterStateUpdate(context: ComponentContext, component: Component, stateUpdater: StateUpdatesTestHelper.StateUpdater, incrementalMountEnabled: Boolean, visibilityProcessingEnabled: Boolean): LithoView
open fun getViewAfterStateUpdate(context: ComponentContext, component: Component, stateUpdater: StateUpdatesTestHelper.StateUpdater, layoutThreadShadowLooper: ShadowLooper, incrementalMountEnabled: Boolean, visibilityProcessingEnabled: Boolean): LithoView
open fun getViewAfterStateUpdate(context: ComponentContext, component: Component, stateUpdater: StateUpdatesTestHelper.StateUpdater, loopers: Array<ShadowLooper>, incrementalMountEnabled: Boolean, visibilityProcessingEnabled: Boolean): LithoView
Call a state update as specified in performStateUpdate on the component and return the updated view with the option to incrementally mount.