filmov
tv
Add Mock web server to Customer List App for testing | Android Basics 025

Показать описание
In this video we add a mock webserver by adding the mockwebserver from okhttp client library. This will enabled our Android instrumentation UI test cases to run against a mock web server instead of the actual production server.
We also overcome the clear text issue of Android in two ways. First by using network security config and second by adding certificates to mockwebserver.
Library used:
Ok http client to be used in Retrofit
Add a logger interceptor
Ok http TLS library to create a self-signed certificate that a test server can use for HTTPS.
Follow us for updates here:
The Mobile Dev - Twitter
We also overcome the clear text issue of Android in two ways. First by using network security config and second by adding certificates to mockwebserver.
Library used:
Ok http client to be used in Retrofit
Add a logger interceptor
Ok http TLS library to create a self-signed certificate that a test server can use for HTTPS.
Follow us for updates here:
The Mobile Dev - Twitter