weaver 2004/10/29 07:34:39
Modified: portal/src/test/org/apache/jetspeed/tools/pamanager
TestPortletDescriptorSecurityRoles.java
Log:
removed persistence store, see: http://nagoya.apache.org/jira/browse/JS2-144
Revision Changes Path
1.11 +8 -19
jakarta-jetspeed-2/portal/src/test/org/apache/jetspeed/tools/pamanager/TestPortletDescriptorSecurityRoles.java
Index: TestPortletDescriptorSecurityRoles.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/test/org/apache/jetspeed/tools/pamanager/TestPortletDescriptorSecurityRoles.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- TestPortletDescriptorSecurityRoles.java 16 Aug 2004 18:33:30 -0000 1.10
+++ TestPortletDescriptorSecurityRoles.java 29 Oct 2004 14:34:39 -0000 1.11
@@ -21,8 +21,8 @@
import junit.framework.TestSuite;
import junit.textui.TestRunner;
-import org.apache.jetspeed.AbstractPrefsSupportedTestCase;
import org.apache.jetspeed.cache.PortletCache;
+import org.apache.jetspeed.components.util.RegistrySupportedTestCase;
import org.apache.jetspeed.factory.JetspeedPortletFactory;
import org.apache.jetspeed.factory.JetspeedPortletFactoryProxy;
import org.apache.jetspeed.om.common.portlet.MutablePortletApplication;
@@ -45,21 +45,10 @@
* @version $Id: TestPortletDescriptorSecurityRoles.java,v 1.4 2004/05/27
* 19:57:24 weaver Exp $
*/
-public class TestPortletDescriptorSecurityRoles extends
AbstractPrefsSupportedTestCase
+public class TestPortletDescriptorSecurityRoles extends RegistrySupportedTestCase
{
/**
- * Defines the testcase name for JUnit.
- *
- * @param name
- * the testcase's name.
- */
- public TestPortletDescriptorSecurityRoles( String name )
- {
- super(name);
- }
-
- /**
* Start the tests.
*
* @param args
@@ -134,19 +123,19 @@
// persist the app
try
{
- persistenceStore.getTransaction().begin();
+
portletRegistry.registerPortletApplication(app);
- persistenceStore.getTransaction().commit();
+
}
catch (Exception e)
{
String msg = "Unable to register portlet application, " + app.getName()
+ ", through the portlet registry: " + e.toString();
- persistenceStore.getTransaction().rollback();
+
throw new Exception(msg, e);
}
// clear cache
- persistenceStore.invalidateAll();
+
// read back in
app = portletRegistry.getPortletApplication("unit-test");
@@ -164,9 +153,9 @@
// remove the app
try
{
- persistenceStore.getTransaction().begin();
+
portletRegistry.removeApplication(app);
- persistenceStore.getTransaction().commit();
+
}
catch (Exception e)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]