Unit Testing: Nosuchmethoderror At Mock Retrofit Get Request
When I run only method testInsert() test completes with no problem, but when I run a whole class I've got an error: java.lang.NoSuchMethodError: com.dataart.kvarivoda.myapplication
Solution 1:
After some trying I couldn't even compile and started to get “No tests found” error. Later I've found that there was some run configuration on the class, although I didn't add anything. I deleted run configuration following this answer: https://stackoverflow.com/a/38190125/2574228
All the errors gone after that.
Post a Comment for "Unit Testing: Nosuchmethoderror At Mock Retrofit Get Request"