AnsweredAssumed Answered

Unit Test activiti process without Spring RunWith & Autowiring

Question asked by mansi on Nov 14, 2016
Latest reply on Nov 24, 2016 by anilmann
Hi,

I have a simple process with one service task.
The service task delegate is created as Spring bean in activiti configuration.

Currently I an unit testing it as under:


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"/activiti.cfg.xml"})
public class ActivitiWorkflowTest {

   @Autowired
    IdentityService identityService;
    @Autowired…..
[code]

Is there a way to test such processes without using Spring? I mean the RunWith and Autowiring?

Outcomes