Skip to content Skip to sidebar Skip to footer
Showing posts with the label Unit Testing

Robolectric With Activeandroid Setup Nullpointerexception On Activeandroid$reflectionutils

I am trying to implement robolectric testing in an existing app. I can run simple static tests but … Read more Robolectric With Activeandroid Setup Nullpointerexception On Activeandroid$reflectionutils

Is It Possible To Find Out If An Android Application Runs As Part Of An Instrumentation Test

Is there a runtime check for an application to find out if it runs as part of an instrumentation te… Read more Is It Possible To Find Out If An Android Application Runs As Part Of An Instrumentation Test

How Can I Swap Test Doubles At The Scope Of An Activity Or A Fragment Using Dagger 2?

EDIT: Watch out! I have deleted the old repository reffered to in this question. See my own answer … Read more How Can I Swap Test Doubles At The Scope Of An Activity Or A Fragment Using Dagger 2?

Unit Test Avoid Class B Constructor Call In Class A Test Method

I have ClassA and ClassB, i have some instrumentation dependencies instantiated in Class B construc… Read more Unit Test Avoid Class B Constructor Call In Class A Test Method

Assets Folder In Android Studio Unit Test

I have a Gradle project with the following structure: project/ src/ androidTest/ … Read more Assets Folder In Android Studio Unit Test

Mocking Class Properties Java/Android

I have a class written by somebody which exposes it properties as public without getters/setters. N… Read more Mocking Class Properties Java/Android