Created
September 19, 2018 09:35
-
-
Save cloudshooterhuman/dbd61410db0570b2ac30d2abde23da7c 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
@Test | |
public void testSuccessfulLogin() { | |
// Aragnge | |
final LoginViewModel vm = new LoginViewModel(environment()); | |
final TestSubscriber<Void> loginSuccess = new TestSubscriber<>(); | |
vm.outputs.loginSuccess().subscribe(loginSuccess); | |
vm.inputs.email("[email protected]"); | |
vm.inputs.password("danisawesome"); | |
// Act | |
vm.inputs.loginClick(); | |
// Assert | |
loginSuccess.assertValueCount(1); | |
koalaTest.assertValues("Login"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment