KogitoDMNDataManagementStrategy extends AbstractDMNDataManagementStrategy { protected ErrorCallback<Object> getDMNContentErrorCallback(String dmnFilePath) { return (message, throwable) -> { eventBus.fireEvent(new ScenarioNotificationEvent(ScenarioSimulationEditorConstants.INSTANCE.dmnPathErrorDetailedLabel(dmnFilePath), NotificationEvent.NotificationType.ERROR)); return false; }; } KogitoDMNDataManagementStrategy(EventBus eventBus, KogitoDMNService dmnTypeService);   }
@Test public void getDMNContentErrorCallback() { ErrorCallback<Object> remoteCallback = kogitoDMNDataManagementStrategySpy.getDMNContentErrorCallback("dmnpath/"); Assert.assertNotNull(remoteCallback); remoteCallback.error("message", new Exception()); verify(eventBusMock, times(1)).fireEvent(isA(ScenarioNotificationEvent.class)); }