Created
July 10, 2019 21:21
-
-
Save zsoltk/4c5962d8ba1c118e39d8b5bb2a10d20d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BindingEnvironmentTest { | |
lateinit var component1: ObservableSource<Component1.Output> | |
lateinit var component2: Consumer<Component2.Input> | |
lateinit var bindings: BindingEnvironment | |
@Before | |
fun setUp() { | |
val component1 = PublishRelay.create() | |
val component2 = mock() | |
val bindings = BindingEnvironment(component1, component2) | |
} | |
@Test | |
fun testBindings() { | |
val simulatedOutputOnLeftSide = TODO() | |
val expectedInputOnRightSide = TODO() | |
component1.accept(simulatedOutputOnLeftSide) | |
verify(component2).accept(expectedInputOnRightSide) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment