@Test public void testGet() throws Exception { PlaceholderMap testling = new PlaceholderMap(); testling.put(TextPlaceholder.STEP_INFORMATION, "bla"); testling.put(TextPlaceholder.DURATION, null); assertEquals(testling.get(TextPlaceholder.STEP_INFORMATION), "bla"); assertEquals(testling.get(TextPlaceholder.DURATION), ""); }
@Override public String get(Object key) { String value = super.get(key); if (value == null) { return ""; } return value; }
PlaceholderMap extends HashMap<TextPlaceholder, String> { @Override public String get(Object key) { String value = super.get(key); if (value == null) { return ""; } return value; } }
PlaceholderMap extends HashMap<TextPlaceholder, String> { @Override public String get(Object key) { String value = super.get(key); if (value == null) { return ""; } return value; }  }
PlaceholderMap extends HashMap<TextPlaceholder, String> { @Override public String get(Object key) { String value = super.get(key); if (value == null) { return ""; } return value; }  @Override String get(Object key); }
PlaceholderMap extends HashMap<TextPlaceholder, String> { @Override public String get(Object key) { String value = super.get(key); if (value == null) { return ""; } return value; }  @Override String get(Object key);  }