avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/merlin/composition/src/test/org/apache/avalon/composition/model/test IncludesTestCase.java
Date Tue, 19 Aug 2003 12:52:59 GMT
mcconnell    2003/08/19 05:52:59

  Modified:    merlin/composition/src/test/org/apache/avalon/composition/model/test
                        IncludesTestCase.java
  Log:
  Stack listing for JRE 1.3 environment.
  
  Revision  Changes    Path
  1.2       +14 -3     avalon-sandbox/merlin/composition/src/test/org/apache/avalon/composition/model/test/IncludesTestCase.java
  
  Index: IncludesTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/merlin/composition/src/test/org/apache/avalon/composition/model/test/IncludesTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IncludesTestCase.java	31 Jul 2003 22:54:16 -0000	1.1
  +++ IncludesTestCase.java	19 Aug 2003 12:52:59 -0000	1.2
  @@ -12,6 +12,7 @@
   import org.apache.avalon.composition.model.DeploymentModel;
   import org.apache.avalon.composition.model.DependencyModel;
   import org.apache.avalon.composition.model.AbstractTestCase;
  +import org.apache.avalon.composition.util.ExceptionHelper;
   import org.apache.avalon.meta.info.DependencyDescriptor;
   
   public class IncludesTestCase extends AbstractTestCase
  @@ -32,9 +33,19 @@
      /**
       * Validate the the included block was created.
       */
  -    public void testInclusion() throws Exception
  +    public void testInclusion() throws Throwable
       {
  -        ContainmentModel test = (ContainmentModel) m_model.getModel( "test" );
  -        assertTrue( test != null );
  +        try
  +        {
  +            ContainmentModel test = (ContainmentModel) m_model.getModel( "test" );
  +            assertTrue( test != null );
  +        }
  +        catch( Throwable e )
  +        {
  +            final String msg = 
  +              ExceptionHelper.packException( "Huston, we have a problem", e, true );
  +            System.err.println( msg );
  +            throw e;
  +        }
       }
   }
  
  
  

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


Mime
View raw message