@Test public void initMapStructure() { collectionEditorPresenterSpy.initMapStructure(TEST_KEY, keyPropertyMapLocal, propertyMapLocal, collectionViewMock); verify(collectionEditorPresenterSpy, times(1)).commonInit(eq(TEST_KEY), eq(collectionViewMock)); assertTrue(instancePropertiesMapLocal.containsKey(TEST_KEY + "#key")); assertEquals(instancePropertiesMapLocal.get(TEST_KEY + "#key"), keyPropertyMapLocal); assertTrue(instancePropertiesMapLocal.containsKey(TEST_KEY + "#value")); assertEquals(instancePropertiesMapLocal.get(TEST_KEY + "#value"), propertyMapLocal); verify(mapEditingBoxPresenterMock, times(1)).setCollectionEditorPresenter(eq(collectionEditorPresenterSpy)); verify(mapElementPresenterMock, times(1)).setCollectionEditorPresenter(eq(collectionEditorPresenterSpy)); }
@Override public void initMapStructure(String key, Map<String, String> keyPropertyMap, Map<String, String> valuePropertyMap, CollectionView collectionView) { commonInit(key, collectionView); simplePropertiesMap.put(key + "#key", keyPropertyMap); simplePropertiesMap.put(key + "#value", valuePropertyMap); mapEditingBoxPresenter.setCollectionEditorPresenter(this); mapElementPresenter.setCollectionEditorPresenter(this); mapElementPresenter.onToggleRowExpansion(false); }
CollectionPresenter implements CollectionView.Presenter { @Override public void initMapStructure(String key, Map<String, String> keyPropertyMap, Map<String, String> valuePropertyMap, CollectionView collectionView) { commonInit(key, collectionView); simplePropertiesMap.put(key + "#key", keyPropertyMap); simplePropertiesMap.put(key + "#value", valuePropertyMap); mapEditingBoxPresenter.setCollectionEditorPresenter(this); mapElementPresenter.setCollectionEditorPresenter(this); mapElementPresenter.onToggleRowExpansion(false); } }
CollectionPresenter implements CollectionView.Presenter { @Override public void initMapStructure(String key, Map<String, String> keyPropertyMap, Map<String, String> valuePropertyMap, CollectionView collectionView) { commonInit(key, collectionView); simplePropertiesMap.put(key + "#key", keyPropertyMap); simplePropertiesMap.put(key + "#value", valuePropertyMap); mapEditingBoxPresenter.setCollectionEditorPresenter(this); mapElementPresenter.setCollectionEditorPresenter(this); mapElementPresenter.onToggleRowExpansion(false); }  }
CollectionPresenter implements CollectionView.Presenter { @Override public void initMapStructure(String key, Map<String, String> keyPropertyMap, Map<String, String> valuePropertyMap, CollectionView collectionView) { commonInit(key, collectionView); simplePropertiesMap.put(key + "#key", keyPropertyMap); simplePropertiesMap.put(key + "#value", valuePropertyMap); mapEditingBoxPresenter.setCollectionEditorPresenter(this); mapElementPresenter.setCollectionEditorPresenter(this); mapElementPresenter.onToggleRowExpansion(false); }  @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 { @Override public void initMapStructure(String key, Map<String, String> keyPropertyMap, Map<String, String> valuePropertyMap, CollectionView collectionView) { commonInit(key, collectionView); simplePropertiesMap.put(key + "#key", keyPropertyMap); simplePropertiesMap.put(key + "#value", valuePropertyMap); mapEditingBoxPresenter.setCollectionEditorPresenter(this); mapElementPresenter.setCollectionEditorPresenter(this); mapElementPresenter.onToggleRowExpansion(false); }  @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);  }