@Test public void save() { editingBoxPresenter.save(); verify(propertyPresenterMock, times(1)).updateProperties("key"); verify(propertyPresenterMock, times(1)).updateProperties(LOWER_CASE_VALUE); verify(collectionPresenterMock, times(1)).addMapItem(anyMap(), anyMap()); }
@Override public void save() { Map<String, String> keyPropertiesValues = propertyPresenter.updateProperties("key"); Map<String, String> valuePropertiesMap = propertyPresenter.updateProperties(VALUE); collectionEditorPresenter.addMapItem(keyPropertiesValues, valuePropertiesMap); }
KeyValueEditingBoxPresenter extends EditingBoxPresenter implements KeyValueEditingBox.Presenter { @Override public void save() { Map<String, String> keyPropertiesValues = propertyPresenter.updateProperties("key"); Map<String, String> valuePropertiesMap = propertyPresenter.updateProperties(VALUE); collectionEditorPresenter.addMapItem(keyPropertiesValues, valuePropertiesMap); } }
KeyValueEditingBoxPresenter extends EditingBoxPresenter implements KeyValueEditingBox.Presenter { @Override public void save() { Map<String, String> keyPropertiesValues = propertyPresenter.updateProperties("key"); Map<String, String> valuePropertiesMap = propertyPresenter.updateProperties(VALUE); collectionEditorPresenter.addMapItem(keyPropertiesValues, valuePropertiesMap); }  }
KeyValueEditingBoxPresenter extends EditingBoxPresenter implements KeyValueEditingBox.Presenter { @Override public void save() { Map<String, String> keyPropertiesValues = propertyPresenter.updateProperties("key"); Map<String, String> valuePropertiesMap = propertyPresenter.updateProperties(VALUE); collectionEditorPresenter.addMapItem(keyPropertiesValues, valuePropertiesMap); }  @Override LIElement getEditingBox(String key, Map<String, String> keyPropertyMap, Map<String, String> valuePropertyMap); @Override void save(); }
KeyValueEditingBoxPresenter extends EditingBoxPresenter implements KeyValueEditingBox.Presenter { @Override public void save() { Map<String, String> keyPropertiesValues = propertyPresenter.updateProperties("key"); Map<String, String> valuePropertiesMap = propertyPresenter.updateProperties(VALUE); collectionEditorPresenter.addMapItem(keyPropertiesValues, valuePropertiesMap); }  @Override LIElement getEditingBox(String key, Map<String, String> keyPropertyMap, Map<String, String> valuePropertyMap); @Override void save();  }