I added logging in some of the methods I was testing on my ViewModel. In order for the test to run properly, I needed to add the following to build.gradle
android {
// ...
testOptions {
unitTests.returnDefaultValues = true
}
}
http://tools.android.com/tech-docs/unit-testing-support#TOC-Method-…-not-mocked.-