portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlest...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/prefs/src/test/org/apache/jetspeed/prefs TestPropertyManager.java TestPreferences.java
Date Tue, 09 Mar 2004 22:34:35 GMT
dlestrat    2004/03/09 14:34:35

  Modified:    components/prefs/src/test/org/apache/jetspeed/prefs
                        TestPropertyManager.java TestPreferences.java
  Log:
  Need to call PreferenceProvider instance in test for now.  Would be more
  appropriate to instantiate the provider during the container assembly.
  
  Revision  Changes    Path
  1.9       +3 -1      jakarta-jetspeed-2/components/prefs/src/test/org/apache/jetspeed/prefs/TestPropertyManager.java
  
  Index: TestPropertyManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/prefs/src/test/org/apache/jetspeed/prefs/TestPropertyManager.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- TestPropertyManager.java	9 Mar 2004 15:58:32 -0000	1.8
  +++ TestPropertyManager.java	9 Mar 2004 22:34:34 -0000	1.9
  @@ -27,6 +27,7 @@
   import org.apache.jetspeed.components.AbstractComponentAwareTestCase;
   import org.apache.jetspeed.components.ComponentAwareTestSuite;
   import org.apache.jetspeed.components.persistence.store.PersistenceStore;
  +import org.apache.jetspeed.prefs.PreferencesProvider;
   import org.apache.jetspeed.prefs.impl.PropertyException;
   import org.apache.jetspeed.prefs.impl.PropertyManagerImpl;
   
  @@ -72,6 +73,7 @@
           super.setUp();
           container = (MutablePicoContainer) getContainer();
           pms = (PropertyManager) container.getComponentInstance(PropertyManager.class);
  +        container.getComponentInstance(PreferencesProvider.class);
       }
   
       /**
  @@ -91,7 +93,7 @@
       public static Test suite()
       {
           ComponentAwareTestSuite suite = new ComponentAwareTestSuite(TestPropertyManager.class);
  -        suite.setScript("org/apache/jetspeed/containers/prefs.container.groovy");
  +        suite.setScript("org/apache/jetspeed/containers/test.prefs.groovy");
           return suite;
       }
   
  
  
  
  1.8       +3 -1      jakarta-jetspeed-2/components/prefs/src/test/org/apache/jetspeed/prefs/TestPreferences.java
  
  Index: TestPreferences.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/prefs/src/test/org/apache/jetspeed/prefs/TestPreferences.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestPreferences.java	9 Mar 2004 15:58:32 -0000	1.7
  +++ TestPreferences.java	9 Mar 2004 22:34:35 -0000	1.8
  @@ -28,6 +28,7 @@
   import org.apache.jetspeed.components.AbstractComponentAwareTestCase;
   import org.apache.jetspeed.components.ComponentAwareTestSuite;
   import org.apache.jetspeed.components.persistence.store.PersistenceStore;
  +import org.apache.jetspeed.prefs.PreferencesProvider;
   import org.apache.jetspeed.prefs.impl.PropertyException;
   
   import org.picocontainer.MutablePicoContainer;
  @@ -72,6 +73,7 @@
           super.setUp();
           container = (MutablePicoContainer) getContainer();
           pms = (PropertyManager) container.getComponentInstance(PropertyManager.class);
  +        container.getComponentInstance(PreferencesProvider.class);
       }
   
       /**
  @@ -91,7 +93,7 @@
       public static Test suite()
       {
           ComponentAwareTestSuite suite = new ComponentAwareTestSuite(TestPreferences.class);
  -        suite.setScript("org/apache/jetspeed/containers/prefs.container.groovy");
  +        suite.setScript("org/apache/jetspeed/containers/test.prefs.groovy");
           return suite;
       }
   
  
  
  

---------------------------------------------------------------------
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