1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.components.portletregistry.direct;
18
19 import junit.framework.Test;
20 import junit.framework.TestSuite;
21
22 import org.apache.jetspeed.components.portletregistry.AbstractRegistryTest;
23 import org.apache.jetspeed.om.portlet.impl.PortletApplicationDefinitionImpl;
24
25 /***
26 *
27 * TestRegistry runs a suite updating PAs
28 *
29 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
30 * @version $Id: TestRegistryDirectPart1b.java 516448 2007-03-09 16:25:47Z ate $
31 *
32 */
33 public class TestRegistryDirectPart1b extends AbstractRegistryTest
34 {
35
36
37
38
39
40 protected void setUp() throws Exception
41 {
42 super.setUp();
43 }
44
45
46
47
48
49
50 protected void tearDown() throws Exception
51 {
52
53 }
54
55 public static Test suite()
56 {
57
58 return new TestSuite(TestRegistryDirectPart1b.class);
59 }
60
61 public void testUpdates() throws Exception
62 {
63
64 PortletApplicationDefinitionImpl app = (PortletApplicationDefinitionImpl) registry.getPortletApplication("App_1");
65 assertNotNull("PA App_1 is NULL", app);
66
67 app.addUserAttribute("user.pets.doggie", "Busby");
68
69 registry.updatePortletApplication(app);
70
71 System.out.println("PA update test complete");
72 }
73
74 }