Android : Can't test protected methods in android (Android studio)

on Tuesday, October 28, 2014


I have a project in Android Studio with the main package name com.game.android Inside this package I have a class GameMainActivity and another package (named "com.game.android.tests") where my tests belong. Inside the test package I have GameMainActivityTest which extends ActivityInstrumentationTestCase2 . I would like to test the protected methods in the GameMainActivity class and am having trouble seeing the methods.


As far as I know this is how I'm supposed to set up my testing within and Android environment but I guess I could have messed up somewhere. Am new to testing in Android so I'm rather clueless at the moment.


0 comments:

Post a Comment