KogitoDMNDataManagementStrategy extends AbstractDMNDataManagementStrategy { @Override protected void retrieveFactModelTuple(TestToolsView.Presenter testToolsPresenter, ScenarioSimulationContext context, GridWidget gridWidget, String dmnFilePath) { RemoteCallback<FactModelTuple> callback = getSuccessCallback(testToolsPresenter, context, gridWidget); String fileName = dmnFilePath.substring(dmnFilePath.lastIndexOf('/') + 1); final Path dmnPath = PathFactory.newPath(fileName, dmnFilePath); dmnTypeService.getDMNContent(dmnPath, getDMNContentRemoteCallback(callback), getDMNContentErrorCallback(dmnFilePath)); } KogitoDMNDataManagementStrategy(EventBus eventBus, KogitoDMNService dmnTypeService);   }
@Test public void retrieveFactModelTuple() { kogitoDMNDataManagementStrategySpy.retrieveFactModelTuple(testToolsPresenterMock, scenarioSimulationContextMock, gridWidgetMock, "path/dmnFile.dmn"); Path expectedPath = new PathFactory.PathImpl("dmnFile.dmn", "path/dmnFile.dmn"); verify(kogitoDMNDataManagementStrategySpy, times(1)).getSuccessCallback(eq(testToolsPresenterMock), eq(scenarioSimulationContextMock), eq(gridWidgetMock)); verify(kogitoDMNServiceMock, times(1)).getDMNContent(eq(expectedPath), isA(RemoteCallback.class), isA(ErrorCallback.class)); }