Skip to content

What is mockServer in android

Devrath edited this page Mar 2, 2024 · 2 revisions

About mock-server

  • Mock server is used to create and monitor a dummy server instead of a real server.
  • You can mock a dummy response and test your classes for that response.
  • You do not have to rely on the backend server and use this dummy server.

Features of a Mock server

  • Mocking multiple different responses.
  • Simulating error responses.
  • Simulating slow network responses.
  • Using the responses, We can fix the app's logic without relying on the backend server.
  • It is used in integration testing to check if Android app work correctly with different components together.