Android Clean Architecture
Setting up the Remote layer for testing
Up next
Previous
About
Within Clean Architecture, the Remote layer allows us to abstract the remote source of data that our application uses. To ensure that this layer operates as intended through time, we're going to need tests. In this lesson we'll be setting up the factory classes so that we can create mock data within the tests that we write.
Instructor
Links
Comments
As noted in previous videos Joe's code for makeProjectEntity() is not correct in the video. Because at some later date Joe figured out that we needed to add a boolean to the model. The correct code should be:
fun makeProjectEntity(): ProjectEntity {
return ProjectEntity(DataFactory.randomUuid(),
DataFactory.randomUuid(),
DataFactory.randomUuid(),
DataFactory.randomUuid(),
DataFactory.randomUuid(),
DataFactory.randomUuid(),
DataFactory.randomUuid(),
DataFactory.randomBoolean())
}
Lessons in Android Clean Architecture















































































