Guest User

Untitled

a guest
Oct 18th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. @RunWith(JUnit4::class)
  2. class MainViewModelTest {
  3.  
  4. @get:Rule
  5. val instantTaskExecutorRule = InstantTaskExecutorRule()
  6.  
  7. @Mock
  8. lateinit var userService: UserService
  9.  
  10. lateinit var mainViewModel: MainViewModel
  11.  
  12. @Before
  13. fun setUp() {
  14. MockitoAnnotations.initMocks(this)
  15. this.mainViewModel = MainViewModel(this.userService)
  16. }
  17. //...
  18. }
Add Comment
Please, Sign In to add comment