0

I need to get mock data for client calling to spring restful web services. I know unit testing purpose we can use mock. but my case is not the testing.

1 Answers1

0

Use hard coded data, or external data file, or external data source to store mock data. I understand the need to host a service that responds but may not be fully wired, to allow early integration with downstream clients. These are the techniques I use, each have pros and cons.

Hard coded data - as you say, is not intuitive or easy to change. Okay for temporary state.

External data file - able to update dynamically as needed

External data source - able to create multiple scenarios with dynamic mock payloads, and change on demand

Megan D
  • 379
  • 3
  • 13