Created
April 14, 2019 19:49
-
-
Save remcomokveld/1a7c678a32582664f8c49b2680c5467f 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 TestMyFragment : MyFragment() { | |
| override fun injectMembers() { | |
| this.viewModel = testViewModel | |
| } | |
| companion object { | |
| // static property can be set before launching the Fragment | |
| // to a mock instance | |
| lateinit var testViewModel: MyViewModel | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment