Could we have an example of how we would create various mock responses for different test cases against an activity.
In-keeping with the flubolate terminolgy by that I mean if we were testing MainActivity and wanted to verify the behaviour if the flumbolate threw an error, or returned null. Currently the behaviour of the mock is defined in the module.
How could we prep the mocks before telling robolectric to run the activity startup so we can vary their outcomes? Should we mark the flumbolate as singleton and inject it into the test class somehow?
Could we have an example of how we would create various mock responses for different test cases against an activity.
In-keeping with the flubolate terminolgy by that I mean if we were testing MainActivity and wanted to verify the behaviour if the flumbolate threw an error, or returned null. Currently the behaviour of the mock is defined in the module.
How could we prep the mocks before telling robolectric to run the activity startup so we can vary their outcomes? Should we mark the flumbolate as singleton and inject it into the test class somehow?