1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package org.apache.jetspeed.components.util;
24
25 import java.util.ArrayList;
26 import java.util.Arrays;
27 import java.util.List;
28
29 import org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent;
30 import org.apache.jetspeed.components.portletregistry.PortletRegistry;
31 import org.apache.jetspeed.prefs.util.test.AbstractPrefsSupportedTestCase;
32
33 /***
34 * @author <a href="mailto:sweaver@einnovation.com">Scott T. Weaver</a>
35 *
36 */
37 public abstract class RegistrySupportedTestCase extends AbstractPrefsSupportedTestCase
38 {
39
40 protected PortletRegistry portletRegistry;
41 protected PortletEntityAccessComponent entityAccess;
42
43
44
45
46 protected void setUp() throws Exception
47 {
48 super.setUp();
49 portletRegistry = (PortletRegistry) ctx.getBean("portletRegistry");
50 entityAccess = (PortletEntityAccessComponent) ctx.getBean("portletEntityAccess");
51 }
52
53 protected String[] getConfigurations()
54 {
55 String[] confs = super.getConfigurations();
56 List confList = new ArrayList(Arrays.asList(confs));
57 confList.add("registry.xml");
58 return (String[]) confList.toArray(new String[1]);
59 }
60 }