ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/property/test AbstractPropertyResolverTestCase.java
Date Tue, 23 Apr 2002 07:44:23 GMT
donaldp     02/04/23 00:44:23

  Modified:    container/src/test/org/apache/myrmidon/components/property/test
                        AbstractPropertyResolverTestCase.java
  Log:
  Rework testcases to work with new DefaultContext implementations
  
  Revision  Changes    Path
  1.9       +10 -3     jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/property/test/AbstractPropertyResolverTestCase.java
  
  Index: AbstractPropertyResolverTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/property/test/AbstractPropertyResolverTestCase.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AbstractPropertyResolverTestCase.java	18 Apr 2002 12:53:15 -0000	1.8
  +++ AbstractPropertyResolverTestCase.java	23 Apr 2002 07:44:23 -0000	1.9
  @@ -15,7 +15,9 @@
   import org.apache.myrmidon.api.TaskException;
   import org.apache.myrmidon.api.TaskContext;
   import org.apache.myrmidon.components.AbstractComponentTest;
  +import org.apache.myrmidon.components.event.DefaultTaskEventManager;
   import org.apache.myrmidon.components.workspace.DefaultTaskContext;
  +import org.apache.myrmidon.components.workspace.DefaultExecutionFrame;
   import org.apache.myrmidon.components.property.DefaultPropertyResolver;
   import org.apache.myrmidon.components.store.DefaultPropertyStore;
   import org.apache.myrmidon.interfaces.property.PropertyResolver;
  @@ -25,7 +27,7 @@
    * General-purpose property resolver test cases.
    *
    * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
  - * @version $Revision: 1.8 $ $Date: 2002/04/18 12:53:15 $
  + * @version $Revision: 1.9 $ $Date: 2002/04/23 07:44:23 $
    */
   public abstract class AbstractPropertyResolverTestCase
       extends AbstractComponentTest
  @@ -45,8 +47,13 @@
           m_resolver = (PropertyResolver)getServiceManager().lookup( PropertyResolver.ROLE
);
   
           final PropertyStore store = new DefaultPropertyStore();
  -        m_context =
  -            new DefaultTaskContext( new DefaultServiceManager(), getLogger(), store );
  +        final DefaultExecutionFrame frame =
  +            new DefaultExecutionFrame( "",
  +                                       getLogger(),
  +                                       store,
  +                                       new DefaultServiceManager(),
  +                                       new DefaultTaskEventManager() );
  +        m_context = new DefaultTaskContext( frame );
   
           m_context.setProperty( "intProp", new Integer( 333 ) );
           m_context.setProperty( "stringProp", "String property" );
  
  
  

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


Mime
View raw message