Hi,
I have an activity that calls a service to perform a certain functionality. Inside my service method, I have a loop in which the service is performing heartbeats.
I am trying to test this service method and getting the following error:
ActivityExecutionContext can be used only inside of activity implementation methods and in the same thread that invoked an activity.
I tried to mock the static method Activity.getExecutionContext
to return a mocked ActivityExecutionContext
but still stuck with the same error.