Part 3: Testing and Code Structure
In this part, we will look at how we can structure our code to make it testable and the types of testing we can do in the code base. The Android Architecture Components will be used to assist in code structuring by separating code that performs tasks that can be tested from code that interacts with the user interface, which is harder to test.
We will then look at the available options we have with regard to saving data on the device. Finally, we will explore how we can manage the dependencies inside the application with the help of dependency injection.
We will cover the following chapters in this section:
- Chapter 10, Unit Tests and Integration Tests with JUnit, Mockito, and Espresso
- Chapter 11, Android Architecture Components
- Chapter 12, Persisting Data
- Chapter 13, Dependency Injection with Dagger, Hilt, and Koin