@Test public void getErrorCallback() { ErrorCallback<Object> errorCallback = scenarioSimulationKogitoRuntimeCreationAssetsDropdownProviderImplSpy.getErrorCallback(); assertFalse(errorCallback.error("message", new Throwable("ex"))); verify(errorPopupPresenterMock, times(1)).showMessage(eq("message: ex")); }
protected ErrorCallback<Object> getErrorCallback() { return (message, throwable) -> { errorPopupPresenter.showMessage(message + ": " + throwable.getMessage()); return false; }; }
ScenarioSimulationKogitoRuntimeCreationAssetsDropdownProviderImpl implements ScenarioSimulationKogitoCreationAssetsDropdownProvider { protected ErrorCallback<Object> getErrorCallback() { return (message, throwable) -> { errorPopupPresenter.showMessage(message + ": " + throwable.getMessage()); return false; }; } }
ScenarioSimulationKogitoRuntimeCreationAssetsDropdownProviderImpl implements ScenarioSimulationKogitoCreationAssetsDropdownProvider { protected ErrorCallback<Object> getErrorCallback() { return (message, throwable) -> { errorPopupPresenter.showMessage(message + ": " + throwable.getMessage()); return false; }; }  }
ScenarioSimulationKogitoRuntimeCreationAssetsDropdownProviderImpl implements ScenarioSimulationKogitoCreationAssetsDropdownProvider { protected ErrorCallback<Object> getErrorCallback() { return (message, throwable) -> { errorPopupPresenter.showMessage(message + ": " + throwable.getMessage()); return false; }; }  @Override void getItems(Consumer<List<KieAssetsDropdownItem>> assetListConsumer); }
ScenarioSimulationKogitoRuntimeCreationAssetsDropdownProviderImpl implements ScenarioSimulationKogitoCreationAssetsDropdownProvider { protected ErrorCallback<Object> getErrorCallback() { return (message, throwable) -> { errorPopupPresenter.showMessage(message + ": " + throwable.getMessage()); return false; }; }  @Override void getItems(Consumer<List<KieAssetsDropdownItem>> assetListConsumer);  }