@Test public void testHide() { final List<DataObject> importedObjects = mock(List.class); final Consumer<List<DataObject>> consumer = mock(Consumer.class); doNothing().when(modal).callSuperSetup(); doNothing().when(modal).superHide(); modal.setup(consumer); modal.hide(importedObjects); verify(consumer).accept(importedObjects); verify(modal).superHide(); }
public void hide(final List<DataObject> importedDataObjects) { if (!Objects.isNull(getDataObjectsConsumer())) { getDataObjectsConsumer().accept(importedDataObjects); } superHide(); }
ImportDataObjectModal extends Elemental2Modal<ImportDataObjectModal.View> { public void hide(final List<DataObject> importedDataObjects) { if (!Objects.isNull(getDataObjectsConsumer())) { getDataObjectsConsumer().accept(importedDataObjects); } superHide(); } }
ImportDataObjectModal extends Elemental2Modal<ImportDataObjectModal.View> { public void hide(final List<DataObject> importedDataObjects) { if (!Objects.isNull(getDataObjectsConsumer())) { getDataObjectsConsumer().accept(importedDataObjects); } superHide(); } @Inject  ImportDataObjectModal(final View view,
                                 final DMNClientServicesProxy client); }
ImportDataObjectModal extends Elemental2Modal<ImportDataObjectModal.View> { public void hide(final List<DataObject> importedDataObjects) { if (!Objects.isNull(getDataObjectsConsumer())) { getDataObjectsConsumer().accept(importedDataObjects); } superHide(); } @Inject  ImportDataObjectModal(final View view,
                                 final DMNClientServicesProxy client); Consumer<List<DataObject>> getDataObjectsConsumer(); void setup(final Consumer<List<DataObject>> dataObjectsConsumer); void hide(final List<DataObject> importedDataObjects); void show(final List<String> existingDataTypes); List<String> getExistingDataTypes(); }
ImportDataObjectModal extends Elemental2Modal<ImportDataObjectModal.View> { public void hide(final List<DataObject> importedDataObjects) { if (!Objects.isNull(getDataObjectsConsumer())) { getDataObjectsConsumer().accept(importedDataObjects); } superHide(); } @Inject  ImportDataObjectModal(final View view,
                                 final DMNClientServicesProxy client); Consumer<List<DataObject>> getDataObjectsConsumer(); void setup(final Consumer<List<DataObject>> dataObjectsConsumer); void hide(final List<DataObject> importedDataObjects); void show(final List<String> existingDataTypes); List<String> getExistingDataTypes();  }