1   package com.atlassian.plugin.osgi;
2   
3   import com.atlassian.plugin.web.descriptors.DefaultWebItemModuleDescriptor;
4   import com.atlassian.plugin.web.DefaultWebInterfaceManager;
5   import org.dom4j.DocumentHelper;
6   import org.dom4j.Element;
7   
8   public class DummyWebItemModuleDescriptor extends DefaultWebItemModuleDescriptor
9   {
10      private String key;
11  
12      public DummyWebItemModuleDescriptor() {
13          super(new DefaultWebInterfaceManager());
14          Element e = DocumentHelper.createElement("somecrap");
15          e.addAttribute("key", "foo");
16          init(null, e);
17          this.key = "somekey";
18      }
19      public String getCompleteKey()
20      {
21          return "test.plugin:somekey";
22      }
23  
24      public String getPluginKey()
25      {
26          return "test.plugin";
27      }
28  
29      public String getKey()
30      {
31          return key;
32      }
33  }