avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/util/test ComponentTestCase.java
Date Thu, 07 Nov 2002 23:40:53 GMT
donaldp     2002/11/07 15:40:53

  Modified:    fortress/src/test/org/apache/excalibur/fortress/util/test
                        ComponentTestCase.java
  Log:
  Update test case to use serviceable
  
  Revision  Changes    Path
  1.2       +9 -10     jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/util/test/ComponentTestCase.java
  
  Index: ComponentTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/fortress/src/test/org/apache/excalibur/fortress/util/test/ComponentTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ComponentTestCase.java	25 Sep 2002 15:10:53 -0000	1.1
  +++ ComponentTestCase.java	7 Nov 2002 23:40:53 -0000	1.2
  @@ -8,12 +8,11 @@
   package org.apache.excalibur.fortress.util.test;
   
   import junit.framework.TestCase;
  -import org.apache.avalon.framework.component.DefaultComponentManager;
   import org.apache.avalon.framework.configuration.DefaultConfiguration;
   import org.apache.avalon.framework.context.DefaultContext;
   import org.apache.avalon.framework.logger.NullLogger;
   import org.apache.avalon.framework.parameters.Parameters;
  -import org.apache.excalibur.fortress.util.test.FullLifecycleComponent;
  +import org.apache.avalon.framework.service.DefaultServiceManager;
   
   /**
    * This class provides basic facilities for enforcing Avalon's contracts
  @@ -37,7 +36,7 @@
   
           component.enableLogging( new NullLogger() );
           component.contextualize( new DefaultContext() );
  -        component.compose( new DefaultComponentManager() );
  +        component.service( new DefaultServiceManager() );
           component.configure( new DefaultConfiguration( "", "" ) );
           component.parameterize( new Parameters() );
           component.initialize();
  @@ -71,7 +70,7 @@
   
           component.enableLogging( new NullLogger() );
           component.contextualize( new DefaultContext() );
  -        component.compose( new DefaultComponentManager() );
  +        component.service( new DefaultServiceManager() );
           try
           {
               component.initialize();
  @@ -91,7 +90,7 @@
   
           component.enableLogging( new NullLogger() );
           component.contextualize( new DefaultContext() );
  -        component.compose( new DefaultComponentManager() );
  +        component.service( new DefaultServiceManager() );
           component.configure( new DefaultConfiguration( "", "" ) );
           component.parameterize( new Parameters() );
           component.initialize();
  @@ -155,7 +154,7 @@
   
           component.enableLogging( new NullLogger() );
           component.contextualize( new DefaultContext() );
  -        component.compose( new DefaultComponentManager() );
  +        component.service( new DefaultServiceManager() );
           component.configure( new DefaultConfiguration( "", "" ) );
   
           try
  @@ -178,7 +177,7 @@
   
           component.enableLogging( new NullLogger() );
           component.contextualize( new DefaultContext() );
  -        component.compose( new DefaultComponentManager() );
  +        component.service( new DefaultServiceManager() );
           try
           {
               component.configure( new DefaultConfiguration( "", "" ) );
  @@ -202,8 +201,8 @@
           component.contextualize( new DefaultContext() );
           try
           {
  -            component.compose( new DefaultComponentManager() );
  -            component.compose( new DefaultComponentManager() );
  +            component.service( new DefaultServiceManager() );
  +            component.service( new DefaultServiceManager() );
           }
           catch( Exception e )
           {
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message