Reputation: 449
I'm new on testing, I read some pages on testing for Android. I can't find pages for testing libraries on Android Studio.
My problem is to test a class without activity and with some private methods.
Someone know how to test libraries on Android Studio 1.1?
Thanks
Upvotes: 1
Views: 147
Reputation: 150
It's a pretty broad question but if you're new to testing on Android take a look at: http://www.vogella.com/tutorials/AndroidTesting/article.html This is mostly on how to test elements in Android, like activities and such.
Testing encapsulated methods and classes can be a pain, especially if it's stuff like libraries, but take a look at this (option 4): http://blog.octo.com/en/android-testing-testing-private-methods/
Hope it helps.
Upvotes: 3