Package org.activiti.engine.runtime

Examples of org.activiti.engine.runtime.ProcessInstanceQuery.singleResult()


        RuntimeService runtimeService = mock(RuntimeService.class);

        ProcessInstanceQuery generalQuery = mock(ProcessInstanceQuery.class);
        for (Map.Entry<String, ProcessInstance> entry : instances.entrySet()) {
            ProcessInstanceQuery specificQuery = mock(ProcessInstanceQuery.class);
            when(specificQuery.singleResult()).thenReturn(entry.getValue());

            when(generalQuery.processInstanceId(eq(entry.getKey()))).thenReturn(specificQuery);
        }
        for (String notFound : notFoundProcessInstanceIds) {
            /* create a mock that returns null for all method calls (default) */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.