portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/test/org/apache/jetspeed/userinfo TestUserInfoManager.java
Date Sun, 01 Aug 2004 23:01:02 GMT
weaver      2004/08/01 16:01:02

  Modified:    portal/src/test/org/apache/jetspeed/userinfo
                        TestUserInfoManager.java
  Log:
  Now extends AbstractPrefsSupportedTestCase
  
  Revision  Changes    Path
  1.10      +5 -12     jakarta-jetspeed-2/portal/src/test/org/apache/jetspeed/userinfo/TestUserInfoManager.java
  
  Index: TestUserInfoManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/test/org/apache/jetspeed/userinfo/TestUserInfoManager.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- TestUserInfoManager.java	17 Jul 2004 17:07:48 -0000	1.9
  +++ TestUserInfoManager.java	1 Aug 2004 23:01:02 -0000	1.10
  @@ -24,14 +24,10 @@
   import junit.framework.Test;
   import junit.framework.TestSuite;
   
  -import org.apache.jetspeed.components.util.RegistrySupportedTestCase;
  +import org.apache.jetspeed.AbstractPrefsSupportedTestCase;
   import org.apache.jetspeed.mockobjects.request.MockRequestContext;
   import org.apache.jetspeed.om.common.portlet.MutablePortletApplication;
  -import org.apache.jetspeed.prefs.PreferencesProvider;
   import org.apache.jetspeed.prefs.PropertyException;
  -import org.apache.jetspeed.prefs.PropertyManager;
  -import org.apache.jetspeed.prefs.impl.PreferencesProviderImpl;
  -import org.apache.jetspeed.prefs.impl.PropertyManagerImpl;
   import org.apache.jetspeed.prefs.om.Property;
   import org.apache.jetspeed.request.RequestContext;
   import org.apache.jetspeed.security.SecurityException;
  @@ -53,10 +49,8 @@
    *
    * @author <a href="mailto:dlestrat@apache.org">David Le Strat</a>
    */
  -public class TestUserInfoManager extends RegistrySupportedTestCase
  +public class TestUserInfoManager extends AbstractPrefsSupportedTestCase
   {
  -    /** The property manager. */
  -    private static PropertyManager propertyManager;
   
       /** The user info manager. */
       private UserInfoManager uim;
  @@ -70,7 +64,7 @@
   
       private PermissionManagerImpl pms;
   
  -    private PreferencesProvider provider;
  +
   
       /**
        * <p>Defines the testcase name for JUnit.</p>
  @@ -94,9 +88,8 @@
           rms =new RoleManagerImpl(persistenceStore);
           pms = new PermissionManagerImpl(persistenceStore);
           new SecurityProviderImpl("login.conf", new RdbmsPolicy(pms), ums);   
  -        propertyManager = new PropertyManagerImpl(persistenceStore);
  -        provider = new PreferencesProviderImpl(persistenceStore, "org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl",
true);
  -        uim = new UserInfoManagerImpl(ums, portletRegistry);       
  +        uim = new UserInfoManagerImpl(ums, portletRegistry); 
  +    
       }
   
       /**
  
  
  

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


Mime
View raw message