View Javadoc

1   package com.atlassian.sal.testresources.pluginsettings;
2   
3   import com.atlassian.sal.api.pluginsettings.PluginSettings;
4   
5   import java.util.Map;
6   import java.util.HashMap;
7   
8   public class MockPluginSettings implements PluginSettings
9   {
10      private final Map<String, Object> map = new HashMap<String, Object>();
11  
12      public Object get(String key)
13      {
14          return map.get(key);
15      }
16  
17      public Object put(String key, Object value)
18      {
19          return map.put(key, value);
20      }
21  
22      public Object remove(String key)
23      {
24          return map.remove(key);
25      }
26  }