You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by at...@apache.org on 2005/11/23 16:29:45 UTC

svn commit: r348462 - in /portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components: portletentity/TestPortletEntityDAO.java portletregistry/TestPortletRegistryDAO.java

Author: ate
Date: Wed Nov 23 07:29:39 2005
New Revision: 348462

URL: http://svn.apache.org/viewcvs?rev=348462&view=rev
Log:
Testcases involving preferences (even if only indirect) really need the pref.xml spring config loaded.
Otheriwse, on L/Unix, the default FileSystemPreferences will be used. And for that, you'll need root access...
In my case (openSUSE) this resulted in: SecurityException: Could not lock System prefs.Lock file access denied.
 

Modified:
    portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletentity/TestPortletEntityDAO.java
    portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletregistry/TestPortletRegistryDAO.java

Modified: portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletentity/TestPortletEntityDAO.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletentity/TestPortletEntityDAO.java?rev=348462&r1=348461&r2=348462&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletentity/TestPortletEntityDAO.java (original)
+++ portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletentity/TestPortletEntityDAO.java Wed Nov 23 07:29:39 2005
@@ -643,6 +643,6 @@
     protected String[] getConfigurations()
     {
         return new String[]
-        { "transaction.xml", "registry.xml" };
+        { "transaction.xml", "registry.xml", "prefs.xml" };
     }
 }

Modified: portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletregistry/TestPortletRegistryDAO.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletregistry/TestPortletRegistryDAO.java?rev=348462&r1=348461&r2=348462&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletregistry/TestPortletRegistryDAO.java (original)
+++ portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletregistry/TestPortletRegistryDAO.java Wed Nov 23 07:29:39 2005
@@ -320,6 +320,6 @@
     protected String[] getConfigurations()
     {
         return new String[]
-        { "transaction.xml", "registry.xml" };
+        { "transaction.xml", "registry.xml", "prefs.xml" };
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org