cancel
Showing results for 
Search instead for 
Did you mean: 

Unit Test activiti process without Spring RunWith & Autowiring

mansi
Champ in-the-making
Champ in-the-making
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?
1 REPLY 1

anilmann
Confirmed Champ
Confirmed Champ
You can use below link for your reference.

https://forums.activiti.org/comment/36926#comment-36926