Search in sources :

Example 1 with ProcessesDataService

use of org.kie.workbench.common.stunner.bpmn.project.backend.service.ProcessesDataService in project kie-wb-common by kiegroup.

the class ProcessesDataServiceTest method setup.

@Before
public void setup() {
    List<RefactoringPageRow> results = new ArrayList<RefactoringPageRow>();
    RefactoringMapPageRow refactoringMapPageRow = new RefactoringMapPageRow();
    Map<String, Path> map = new HashMap<String, Path>();
    map.put(ID1, path1);
    map.put(ID2, path2);
    refactoringMapPageRow.setValue(map);
    results.add(refactoringMapPageRow);
    when(queryService.query(anyString(), anyObject())).thenReturn(results);
    tested = new ProcessesDataService(queryService, processesUpdatedEvent);
}
Also used : Path(org.uberfire.backend.vfs.Path) HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) ProcessesDataService(org.kie.workbench.common.stunner.bpmn.project.backend.service.ProcessesDataService) RefactoringMapPageRow(org.kie.workbench.common.services.refactoring.model.query.RefactoringMapPageRow) ArgumentMatchers.anyString(org.mockito.ArgumentMatchers.anyString) RefactoringPageRow(org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRow) Before(org.junit.Before)

Aggregations

ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 Before (org.junit.Before)1 RefactoringMapPageRow (org.kie.workbench.common.services.refactoring.model.query.RefactoringMapPageRow)1 RefactoringPageRow (org.kie.workbench.common.services.refactoring.model.query.RefactoringPageRow)1 ProcessesDataService (org.kie.workbench.common.stunner.bpmn.project.backend.service.ProcessesDataService)1 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)1 Path (org.uberfire.backend.vfs.Path)1