Integrating with the Service
Explore how to replace placeholder code with actual network calls in Kotlin's fetchData function. Understand integration testing by verifying responses from a web service. Gain practical skills in writing and running integration tests that depend on external services.
We'll cover the following...
We'll cover the following...
Calling the web-service
We have one unfinished piece of work in the Airport class—the fetchData() function is pending implementation. We need to replace the exception in that function with code to talk to the web service. Since it needs a network ...