![]() In this tutorial, we will focus only on two test cases: Therefore, all values are set at object instantiation by its constructor.ĬharactersModel.java: public class CharacterModel Presenter testsĮven without the view implementation (the Activity in this case) we can already test the presenter. ![]() For now, I will make all attributes as public and final instead of creating getter methods for each of them, because I intend to write a second part of this article where I explain how to validate models using reflection. My suggestion is to use immutable models, given its advantages. The next step will be the creation of our models that will represent the response returned from the characters request.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |