The Code Under Test

We'll cover the following

Application design

To practice writing automated tests for Kotlin code, we’ll pick a sample application. We’ll create an asynchronous program that will print, in sorted order of name, the status of different airports. The program will fetch the necessary data from a remote web service, like we saw in Chapter 17, Asynchronous Programming. The overall design of the application that we’ll create is shown in the following figure.

Get hands-on with 1400+ tech skills courses.