Currently i'm researching a ways of writing unit and integration tests for android apps. I have so confused that there is absent a possibility to provide a set of parameters directly to the method like JUnitParams library does. So i have several questions:
- Is there a way to combine AndroidJUnit4 and JUnitParamsRunner to combine an access to android classes ( like Rect) with parametrized methods?
- If not, what is the best way of architecture organization of tests? By example i have a set of invalid data, which should lead to exception and a set of valid data ( threshold values and regular) and two methods to test it. Should i create two classes for this purpose? (Because it is not possible to provide different sets of data, which will be used in one class without some duct tape, like enum parameter etc.)