@Test public void commonInit() { collectionEditorPresenterSpy.collectionView = null; collectionEditorPresenterSpy.commonInit(TEST_KEY, collectionViewMock); assertEquals(collectionEditorPresenterSpy.collectionView, collectionViewMock); verify(editorTitleMock, times(1)).setInnerText(TEST_KEY); verify(propertyTitleMock, times(1)).setInnerText(TEST_PROPERTYNAME); }
protected void commonInit(String key, CollectionView collectionView) { this.collectionView = collectionView; String propertyName = key.substring(key.lastIndexOf('#') + 1); this.collectionView.getEditorTitle().setInnerText(key); this.collectionView.getPropertyTitle().setInnerText(propertyName); }
CollectionPresenter implements CollectionView.Presenter { protected void commonInit(String key, CollectionView collectionView) { this.collectionView = collectionView; String propertyName = key.substring(key.lastIndexOf('#') + 1); this.collectionView.getEditorTitle().setInnerText(key); this.collectionView.getPropertyTitle().setInnerText(propertyName); } }
CollectionPresenter implements CollectionView.Presenter { protected void commonInit(String key, CollectionView collectionView) { this.collectionView = collectionView; String propertyName = key.substring(key.lastIndexOf('#') + 1); this.collectionView.getEditorTitle().setInnerText(key); this.collectionView.getPropertyTitle().setInnerText(propertyName); }  }
CollectionPresenter implements CollectionView.Presenter { protected void commonInit(String key, CollectionView collectionView) { this.collectionView = collectionView; String propertyName = key.substring(key.lastIndexOf('#') + 1); this.collectionView.getEditorTitle().setInnerText(key); this.collectionView.getPropertyTitle().setInnerText(propertyName); }  @Override void initListStructure(String key, Map<String, String> simplePropertiesMap, Map<String, Map<String, String>> expandablePropertiesMap, CollectionView collectionView); @Override void initMapStructure(String key, Map<String, String> keyPropertyMap, Map<String, String> valuePropertyMap, CollectionView collectionView); @Override void setValue(String jsonString); @Override void showEditingBox(); @Override void onToggleRowExpansion(boolean isShown); @Override void updateRowExpansionStatus(boolean isShown); @Override void addListItem(Map<String, String> simplePropertiesValues, Map<String, Map<String, String>> expandablePropertiesValues); @Override void addMapItem(Map<String, String> keyPropertiesValues, Map<String, String> valuePropertiesValues); @Override void save(); @Override void remove(); @Override void toggleEditingStatus(boolean editingStatus); }
CollectionPresenter implements CollectionView.Presenter { protected void commonInit(String key, CollectionView collectionView) { this.collectionView = collectionView; String propertyName = key.substring(key.lastIndexOf('#') + 1); this.collectionView.getEditorTitle().setInnerText(key); this.collectionView.getPropertyTitle().setInnerText(propertyName); }  @Override void initListStructure(String key, Map<String, String> simplePropertiesMap, Map<String, Map<String, String>> expandablePropertiesMap, CollectionView collectionView); @Override void initMapStructure(String key, Map<String, String> keyPropertyMap, Map<String, String> valuePropertyMap, CollectionView collectionView); @Override void setValue(String jsonString); @Override void showEditingBox(); @Override void onToggleRowExpansion(boolean isShown); @Override void updateRowExpansionStatus(boolean isShown); @Override void addListItem(Map<String, String> simplePropertiesValues, Map<String, Map<String, String>> expandablePropertiesValues); @Override void addMapItem(Map<String, String> keyPropertiesValues, Map<String, String> valuePropertiesValues); @Override void save(); @Override void remove(); @Override void toggleEditingStatus(boolean editingStatus);  }