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

Rxjava Android Mvp Unit Test Nullpointerexception

I am new to Unit Testing in mvp, I want to make a verrry basic test to the presenter, which is resp… Read more Rxjava Android Mvp Unit Test Nullpointerexception

Gradle Android Unit Tests That Depend On An 'aar'

Want to be able to depend on an AAR for my unit tests in a Gradle-Android project. I do not want t… Read more Gradle Android Unit Tests That Depend On An 'aar'

Android Local Tests Vs Instrumented Test

I'm trying to check if my API is available within a unit test, to be sure that it responds with… Read more Android Local Tests Vs Instrumented Test

Set Parameters Of Android.location.location Object From Junit Unit Test

I'm trying to make unit test for a function which receive android.location.Location object. But… Read more Set Parameters Of Android.location.location Object From Junit Unit Test

Classcastexception Exception When Running Robolectric Test With Power Mock On Multiple Files

So I set up the power mock based on the reference guide here. It all seems to run perfectly fine wi… Read more Classcastexception Exception When Running Robolectric Test With Power Mock On Multiple Files

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?

Android Studio 2.1: Error: Package Org.junit Does Not Exist

Update: Its a bug and it's been reported, please star: https://code.google.com/p/android/issues… Read more Android Studio 2.1: Error: Package Org.junit Does Not Exist

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

What Is The Purpose Of @smalltest, @mediumtest, And @largetest Annotations In Android?

I'm new to Android and I've seen example code using these annotations. For example: @SmallT… Read more What Is The Purpose Of @smalltest, @mediumtest, And @largetest Annotations In Android?

Android - Junit Testing Models/controllers (which Only Use Java Imports) Without The Android Emulator Deploy

I've got two different UnitTest Projects for my Android App Project. One for the Model Classes … Read more Android - Junit Testing Models/controllers (which Only Use Java Imports) Without The Android Emulator Deploy

Setvalue And Postvalue On Mutablelivedata In Unittest

I try to test some methods on my Application but I get an error when calling mutablelivedata.postVa… Read more Setvalue And Postvalue On Mutablelivedata In Unittest

How To/should I Unit Test Eventbus Events With Mockito?

I use Otto's EventBus in my Android app. In my LoginNetworkOperation class, I catch different k… Read more How To/should I Unit Test Eventbus Events With Mockito?

Android Unit Testing With Contentproviders

I have been struggling with a unit testing problem on Android for a while now. My app uses a Sqlite… Read more Android Unit Testing With Contentproviders

Should Unit Test Use 'throws Exception' By Default?

In other words should I append throws Exception to all or most of my unit tests? When you generate … Read more Should Unit Test Use 'throws Exception' By Default?

Android @nonnull Usefulness

After a few reading and questions like this one I was wondering if there was a point in using @NonN… Read more Android @nonnull Usefulness

Activityunittestcase And Startactivity With Actionbaractivity

I try to test a Activity which uses ActionBarActivity (from the appcompat library). I need a custom… Read more Activityunittestcase And Startactivity With Actionbaractivity