PropertyPresenter implements PropertyView.Presenter { @Override public String getPropertyValue(String propertyName) throws Exception { if (propertySpanElementMap.containsKey(propertyName)) { return propertySpanElementMap.get(propertyName).getInnerText(); } else { throw new Exception(propertyName + " not found"); } }  @Override String getPropertyValue(String propertyName); @Override void editProperties(String itemId); @Override void stopEditProperties(String itemId); @Override Map<String, String> updateProperties(String itemId); @Override Map<String, String> getSimpleProperties(String itemId); @Override LIElement getPropertyFields(String itemId, String propertyName, String propertyValue); @Override LIElement getEditingPropertyFields(String itemId, String propertyName, String propertyValue); @Override void onToggleRowExpansion(String itemId, boolean isShown); @Override void deleteProperties(String itemId);  }
@Test public void getPropertyValueContainsKey() throws Exception { assertEquals(INNER_TEXT, propertyEditorPresenter.getPropertyValue(TEST_PROPERTYNAME)); }
@Test(expected = Exception.class) public void getPropertyValueNotContainsKey() throws Exception { propertySpanElementMapLocal.clear(); propertyEditorPresenter.getPropertyValue(TEST_PROPERTYNAME); }