July 2018
Intermediate to advanced
266 pages
7h 11m
English
Let's add a class that will contain our Functional Tests. We will call it SampleAppFT and put it in the chapter8 package of the test module:

Inside it, let's start by creating a class with two empty tests. We will implement those in a bit:
class SampleAppFT { @Test fun testHappyPath() = runBlocking { // TODO: Implement a happy path test } @Test fun testOppositeOrder() = runBlocking { // TODO: Implement a test with an // unexpected order of retrieval }}
Next to the SampleAppFT class, let's create a mock implementation of DataSource that fits the expected behavior when retrieving the information. In it, getting data ...
Read now
Unlock full access