You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by ep...@apache.org on 2004/10/19 13:18:39 UTC

cvs commit: jakarta-turbine-fulcrum/testcontainer/xdocs changes.xml

epugh       2004/10/19 04:18:39

  Modified:    testcontainer/src/java/org/apache/fulcrum/testcontainer
                        BaseUnitTest.java
               testcontainer/xdocs changes.xml
  Log:
  Add helper resolve() method that delegatest o lookup()
  
  Revision  Changes    Path
  1.6       +12 -1     jakarta-turbine-fulcrum/testcontainer/src/java/org/apache/fulcrum/testcontainer/BaseUnitTest.java
  
  Index: BaseUnitTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/testcontainer/src/java/org/apache/fulcrum/testcontainer/BaseUnitTest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- BaseUnitTest.java	9 Jan 2004 13:59:38 -0000	1.5
  +++ BaseUnitTest.java	19 Oct 2004 11:18:39 -0000	1.6
  @@ -138,6 +138,17 @@
           }
           return container.lookup(roleName);
       }
  +    
  +    /**
  +     * Helper method for converting to and from Merlin Unit TestCase.
  +     * @param roleName
  +     * @return
  +     * @throws ComponentException
  +     */
  +    protected Component resolve(String roleName) throws ComponentException
  +    {
  +        return lookup(roleName);
  +    }    
       /**
   	 * Releases the component
   	 * 
  
  
  
  1.6       +4 -0      jakarta-turbine-fulcrum/testcontainer/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/testcontainer/xdocs/changes.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- changes.xml	7 Sep 2004 10:09:39 -0000	1.5
  +++ changes.xml	19 Oct 2004 11:18:39 -0000	1.6
  @@ -8,6 +8,10 @@
   
     <body>
     	<release version="1.0.4-dev" date="in cvs">       
  +      <action dev="epugh" type="add">
  +        Add helper "resolve" method that delegates to "lookup" to faciliate
  +        using in both Merlin and ECM enviroments.
  +      </action>        
         <action dev="epugh" type="add" due-to="Ben Gidley">
           Tweak documentation to be more explicit on where config files
           are pulled from.
  
  
  

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