My current task is to wait for a couple of fields from the backend (DB) and then modify them at my side. The backend changes will take time and in the meanwhile, I want to create a simulator and start of with my changes. Is there a design pattern, somebody can suggest, which will help me design a simulator for the backend and later on, without much code changes, allow me to port to the real backend values?
Share
Look into mockito, it is pretty great. The basics are:
You may also need to use some dependency injection so that you can pass in real (during production) or mock (during testing) objects to functions.