Hi everybody, I’m having a bit of troubles here with mocking static Android OS methods. I’m doing it according to the manual, but something is still wrong. Could somebody please have a look?
Copy code
@Test
fun getGoogleSignInOptions() {
mockkStatic(TextUtils::class)
every { TextUtils.isEmpty(any()) } returns false
vm.getGoogleSignInOptions()
verify(atMost = 1) { authService.getGoogleSignInOptions() }
}