Package org.activiti.engine.test.mock

Examples of org.activiti.engine.test.mock.ActivitiMockSupport


  @NoOpServiceTasks(
      ids = {"serviceTask1", "serviceTask3", "serviceTask5"},
      classNames= {"com.yourcompany.delegate2", "com.yourcompany.delegate4"}
  )
  public void testNoOpServiceTasksWithIdsAnnotation() {
    ActivitiMockSupport mockSupport = activitiRule.getMockSupport();
    Assert.assertEquals(0, mockSupport.getNrOfNoOpServiceTaskExecutions());
    activitiRule.getRuntimeService().startProcessInstanceByKey("mockSupportTest");
    Assert.assertEquals(5, mockSupport.getNrOfNoOpServiceTaskExecutions());
   
    for (int i=1; i<=5; i++) {
      Assert.assertEquals("com.yourcompany.delegate" + i, mockSupport.getExecutedNoOpServiceTaskDelegateClassNames().get(i-1));
    }
  }
View Full Code Here


    formService = processEngine.getFormService();
  }

  protected void initializeMockSupport() {
    if (ActivitiMockSupport.isMockSupportPossible(processEngine)) {
      this.mockSupport = new ActivitiMockSupport(processEngine);
    }
  }
View Full Code Here

    formService = processEngine.getFormService();
  }
 
  protected void initializeMockSupport() {
    if (ActivitiMockSupport.isMockSupportPossible(processEngine)) {
    this.mockSupport = new ActivitiMockSupport(processEngine);
  }
  }
View Full Code Here

TOP

Related Classes of org.activiti.engine.test.mock.ActivitiMockSupport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.