AnsweredAssumed Answered

Mock a Java service task

Question asked by rangoo on Jul 9, 2013
Latest reply on Sep 2, 2013 by gromar
I have a process where I have a timer job which calls a Java Service Task(which calls a webservice). In my unit test I am triggering Jobs like this

      // Manually execute the job
ManagementService managementService = activitiRule
      Job timer = managementService.createJobQuery().singleResult();


But I am not sure how I mock my Java Service Tasks' execute method, so that the actual webservice is not made.