1 package com.atlassian.plugin.web.descriptors;
2
3 import com.atlassian.plugin.PluginParseException;
4 import com.atlassian.plugin.web.ContextProvider;
5
6 import java.util.Map;
7
8 public class MockContextProvider implements ContextProvider
9 {
10 static final String KEY_ADDED_TO_CONTEXT = "addedToContext";
11 static final String DATA_ADDED_TO_CONTEXT = "data added to context";
12
13 public void init(Map<String, String> params) throws PluginParseException
14 {
15 }
16
17 public Map<String, Object> getContextMap(Map<String, Object> context)
18 {
19 context.put(KEY_ADDED_TO_CONTEXT, DATA_ADDED_TO_CONTEXT);
20 return context;
21 }
22 }