@Test public void clearShouldDelegateToMap() { Map<String, Object> map = Mockito.mock(Map.class); FactMap factMap = new FactMap(map); factMap.clear(); Mockito.verify(map, Mockito.times(1)).clear(); }
@Override public void clear() { _facts.clear(); }
FactMap implements NameValueReferableMap<T> { @Override public void clear() { _facts.clear(); } }
FactMap implements NameValueReferableMap<T> { @Override public void clear() { _facts.clear(); } FactMap(Map<String, NameValueReferable<T>> facts); @SafeVarargs  FactMap(NameValueReferable<T>... facts);  FactMap(); }
FactMap implements NameValueReferableMap<T> { @Override public void clear() { _facts.clear(); } FactMap(Map<String, NameValueReferable<T>> facts); @SafeVarargs  FactMap(NameValueReferable<T>... facts);  FactMap(); @Override T getOne(); @Override T getValue(String name); @Deprecated String getStrVal(String name); @Deprecated Integer getIntVal(String name); @Deprecated Double getDblVal(String name); void setValue(String name, T value); @Override Fact<T> put(NameValueReferable<T> fact); @Override Fact<T> put(String key, NameValueReferable<T> fact); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Fact<T> get(Object key); @Override Fact<T> remove(Object key); @Override void putAll(Map<? extends String, ? extends NameValueReferable<T>> map); @Override void clear(); @Override Set<String> keySet(); @Override Collection<NameValueReferable<T>> values(); @Override Set<Entry<String, NameValueReferable<T>>> entrySet(); @Override String toString(); }
FactMap implements NameValueReferableMap<T> { @Override public void clear() { _facts.clear(); } FactMap(Map<String, NameValueReferable<T>> facts); @SafeVarargs  FactMap(NameValueReferable<T>... facts);  FactMap(); @Override T getOne(); @Override T getValue(String name); @Deprecated String getStrVal(String name); @Deprecated Integer getIntVal(String name); @Deprecated Double getDblVal(String name); void setValue(String name, T value); @Override Fact<T> put(NameValueReferable<T> fact); @Override Fact<T> put(String key, NameValueReferable<T> fact); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Fact<T> get(Object key); @Override Fact<T> remove(Object key); @Override void putAll(Map<? extends String, ? extends NameValueReferable<T>> map); @Override void clear(); @Override Set<String> keySet(); @Override Collection<NameValueReferable<T>> values(); @Override Set<Entry<String, NameValueReferable<T>>> entrySet(); @Override String toString();  }