You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by sg...@apache.org on 2005/03/01 13:17:31 UTC

cvs commit: jakarta-turbine-fulcrum/testcontainer/src/test/org/apache/fulcrum/testcontainer YaafiContainerTest.java

sgoeschl    2005/03/01 04:17:31

  Modified:    testcontainer/src/test/org/apache/fulcrum/testcontainer
                        YaafiContainerTest.java
  Log:
  We are definitely not throwing a deprecated ComponentException
  
  Revision  Changes    Path
  1.3       +9 -8      jakarta-turbine-fulcrum/testcontainer/src/test/org/apache/fulcrum/testcontainer/YaafiContainerTest.java
  
  Index: YaafiContainerTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/testcontainer/src/test/org/apache/fulcrum/testcontainer/YaafiContainerTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- YaafiContainerTest.java	1 Nov 2004 13:29:24 -0000	1.2
  +++ YaafiContainerTest.java	1 Mar 2005 12:17:31 -0000	1.3
  @@ -19,17 +19,17 @@
   import org.apache.avalon.framework.component.ComponentException;
   /**
    * Basic testing of the Container
  - * 
  + *
    * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
    * @version $Id$
    */
   public class YaafiContainerTest extends BaseUnitTest
   {
       /**
  -	 * Constructor for test.
  -	 * 
  -	 * @param testName name of the test being executed
  -	 */
  +     * Constructor for test.
  +     *
  +     * @param testName name of the test being executed
  +     */
       public YaafiContainerTest(String testName)
       {
           super(testName);
  @@ -88,12 +88,13 @@
           try
           {
               sc = (SimpleComponent) this.lookup(SimpleComponent.ROLE);
  +            fail("We should fail");
           }
  -        catch (ComponentException e)
  +        catch (Exception e)
           {
               //good  We expect to fail
           }
  -       
  +
       }
   
   }
  
  
  

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