Skip to content Skip to sidebar Skip to footer
Showing posts with the label Robolectric

Writing Android Acceptance Tests With Robolectric: How Could It Be Done?

Can Android acceptance tests be written using Robolectric? It seems to be classed only as a unit-te… Read more Writing Android Acceptance Tests With Robolectric: How Could It Be Done?

Shadowing Getfilesdir() In Robolectric 3

I'd like to shadow Context.getFilesDir() in order to 'virtualize' the filesystem my ap… Read more Shadowing Getfilesdir() In Robolectric 3

Android Instrumentation Test Java.lang.unsatisfiedlinkerror On Using Androidjunitrunner And Androidjunit4

I am using robolectric in our unit tests. Recently in our project, we are adding a new dependency f… Read more Android Instrumentation Test Java.lang.unsatisfiedlinkerror On Using Androidjunitrunner And Androidjunit4

Robolectric 3.0 Testing Vibrator Service

I am in process of migrating my test cases to latest Robolectric 3.0. To test the viberator service… Read more Robolectric 3.0 Testing Vibrator Service

Simpletestcursor Robolectric 3.0-- Compilation Issue

I am trying to test the cursor in my app. But for the following import I get the error message-- ca… Read more Simpletestcursor Robolectric 3.0-- Compilation Issue

Using Powermock And Robolectric - Incompatibleclasschangeerror

I'm trying to use PowerMockito to mock some static methods in Android Robolectric tests. I'… Read more Using Powermock And Robolectric - Incompatibleclasschangeerror

Using Robolectric With Sqliteassethelper

I'm very new to Robolectric, so apologies in advance if I'm missing something obvious here.… Read more Using Robolectric With Sqliteassethelper

How To Mock Dagger Activity Object Graphs?

I'm using Dagger in an android app to provide application and activity scope graphs. And I'… Read more How To Mock Dagger Activity Object Graphs?