hey! I’m doing some unit testing with mockito an...
# announcements
f
hey! I’m doing some unit testing with mockito and kotlin and I have a problem on this piece of code:
Copy code
Mockito.`when`(userRepository.insertOrUpdateUserAccount(userAccount))
                .thenThrow(IllegalStateException())
When there is a call to the mocked method I have an error: Checked exception is invalid for this method!