All Questions
7 questions
0
votes
1
answer
425
views
Unit tests for User class with JUnit 5
This is a follow-up question for Android app class serialization. Some problems have been mentioned in forsvarir's answer. Then, I am following JUnit 5 User Guide to redesign the test cases for ...
2
votes
1
answer
106
views
Android app class serialization
I am attempting to build an Android APP with the custom serializable class User. The public method Save is to save class ...
2
votes
1
answer
812
views
Android Java Unit Testing model class
I'm trying to get familiar with unit testing. I never implement TDD previously, but I believe it's the best way to write software.
So, here I'm trying to test my ...
0
votes
1
answer
64
views
Unit Testing Android Studio
I am carrying out unit testing for my project but i am not sure i am doing it correctly. The example below calculates the difference between 2 time duration's.
...
0
votes
1
answer
3k
views
Espresso tests that check if Snackbar is displayed and if there is an internet connection
I have recently began writing tests for Android using the espresso library.
Here I have three tests.
The first test is to check if a snackbar appears when searching with blank text.
The second is a ...
4
votes
1
answer
5k
views
Testing a ViewModel in Android - MVVM with DataBinding
I am using MVVM pattern with databinding. I have written tests. But I want them reviewed. The test is related to JUnit test on the ViewModel.
FeedViewModelTest....
4
votes
1
answer
152
views
Scheduling a response callback
I have an Android service which must offload a task to a different thread but schedule the response callback unto the calling thread. After much thinking I came up with this code:
...