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

Simplest Way To Unit Test An Android Library Application?

Sorry if this is a bit of a vague question, however im struggling to find a single solid example on… Read more Simplest Way To Unit Test An Android Library Application?

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&… Read more Unit Testing: Nosuchmethoderror At Mock Retrofit Get Request

How To Unit Test Google Cloud Endpoints Java Using Android Studio 0.8

I've found a few posts, but they either refer to front-end testing, or python. There is one tut… Read more How To Unit Test Google Cloud Endpoints Java Using Android Studio 0.8

Stand-alone Test Project For A Library Project On Android

My question is: How do I create an Android stand-alone test project for an Android library? I'v… Read more Stand-alone Test Project For A Library Project On Android

You Need To Use A Theme.appcompat Theme --> In Unit Test

I know this topic has been discussed but it is a little different here: App works fine Error is di… Read more You Need To Use A Theme.appcompat Theme --> In Unit Test

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

Android Instrumented Tests Coverage Exclude Flies

I run my tests with 'gradlew createDebugCoverageReport'. My problem is that the coverage re… Read more Android Instrumented Tests Coverage Exclude Flies

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?

Testing A Click On An Android Listview With Activityunittestcase

I have implemented a ListView that starts a new Activity when a list item is clicked. When I test i… Read more Testing A Click On An Android Listview With Activityunittestcase

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'

Unit Testing Arraymap Throws Method Put In Android.util.arraymap Not Mocked

I am trying to unit test a method that uses array map and I keep getting the following exception: j… Read more Unit Testing Arraymap Throws Method Put In Android.util.arraymap Not Mocked

How To See If A Sub-activity Was Started Or Not

I'm writing a unit test for an Android application. I'd like to see if clicking a button wi… Read more How To See If A Sub-activity Was Started Or Not

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

Stub Value Of Build.version.sdk_int In Local Unit Test

I am wondering if there is anyway to stub the value of Build.Version.SDK_INT? Suppose I have the fo… Read more Stub Value Of Build.version.sdk_int In Local Unit Test

Unit Testing With Android Volley

I would like to know how can I create unit tests for the volley framework. Mock the requests, the r… Read more Unit Testing With Android Volley

Junit5 Testsuite With Selectclasses Not Working In Android Unit Test

i am trying to create a test suite for Unit test of android application, but it always fails with d… Read more Junit5 Testsuite With Selectclasses Not Working In Android Unit Test

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?