Do not start StartListener during BuildModule

I have a class that implements ‘StartListener’ so that it starts with the mocks. Is there any way to have it so that it does not run during a build module, only when an application is run using a run configuration?

Hi @ssampson,

The start listener is called whenever the simulator is started. If your application has some tests, the simulator will be started to run them during the build module.

If you want your mock to be started only when it is used, you could use:

  • An initialize native function called from your application (typically from a static block).
  • A static block in your mock native class that will do the start-up of your mock

Regards,