@Test public void testGetItemDefinitionConsumer() { final ItemDefinition itemDefinition1 = mock(ItemDefinition.class); final ItemDefinition itemDefinition2 = mock(ItemDefinition.class); final List<ItemDefinition> expectedNewItemDefinitions = asList(itemDefinition1, itemDefinition2); modal.getItemDefinitionConsumer().accept(expectedNewItemDefinitions); verify(refreshDataTypesListEvent).fire(refreshDataTypesListArgumentCaptor.capture()); final List<ItemDefinition> actualNewItemDefinitions = refreshDataTypesListArgumentCaptor.getValue().getNewItemDefinitions(); assertEquals(expectedNewItemDefinitions, actualNewItemDefinitions); }
Consumer<List<ItemDefinition>> getItemDefinitionConsumer() { return itemDefinitions -> refreshDataTypesListEvent.fire(new RefreshDataTypesListEvent(itemDefinitions)); }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { Consumer<List<ItemDefinition>> getItemDefinitionConsumer() { return itemDefinitions -> refreshDataTypesListEvent.fire(new RefreshDataTypesListEvent(itemDefinitions)); } }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { Consumer<List<ItemDefinition>> getItemDefinitionConsumer() { return itemDefinitions -> refreshDataTypesListEvent.fire(new RefreshDataTypesListEvent(itemDefinitions)); } @Inject  IncludedModelModal(final View view,
                              final DMNAssetsDropdown dropdown,
                              final ImportRecordEngine recordEngine,
                              final DMNIncludeModelsClient client,
                              final Event<RefreshDataTypesListEvent> refreshDataTypesListEvent,
                              final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { Consumer<List<ItemDefinition>> getItemDefinitionConsumer() { return itemDefinitions -> refreshDataTypesListEvent.fire(new RefreshDataTypesListEvent(itemDefinitions)); } @Inject  IncludedModelModal(final View view,
                              final DMNAssetsDropdown dropdown,
                              final ImportRecordEngine recordEngine,
                              final DMNIncludeModelsClient client,
                              final Event<RefreshDataTypesListEvent> refreshDataTypesListEvent,
                              final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); @PostConstruct void setup(); void init(final IncludedModelsPagePresenter grid); @Override void show(); void include(); @Override void hide(); }
IncludedModelModal extends Elemental2Modal<IncludedModelModal.View> { Consumer<List<ItemDefinition>> getItemDefinitionConsumer() { return itemDefinitions -> refreshDataTypesListEvent.fire(new RefreshDataTypesListEvent(itemDefinitions)); } @Inject  IncludedModelModal(final View view,
                              final DMNAssetsDropdown dropdown,
                              final ImportRecordEngine recordEngine,
                              final DMNIncludeModelsClient client,
                              final Event<RefreshDataTypesListEvent> refreshDataTypesListEvent,
                              final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent); @PostConstruct void setup(); void init(final IncludedModelsPagePresenter grid); @Override void show(); void include(); @Override void hide();  }