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 Thu, 31 Jul 2003 22:54:16 GMT
mcconnell    2003/07/31 15:54:16

  Added:       merlin/composition/src/test/conf includes.xml
               merlin/composition/src/test/org/apache/avalon/composition/model/test
                        IncludesTestCase.java
  Log:
  Add implementation of block include semantics supporting inclusion from a repository based
jar file (test case included).
  
  Revision  Changes    Path
  1.1                  avalon-sandbox/merlin/composition/src/test/conf/includes.xml
  
  Index: includes.xml
  ===================================================================
  
  
  <container>
     <include name="test" id="test:includes"/>
  </container>
  
  
  
  1.1                  avalon-sandbox/merlin/composition/src/test/org/apache/avalon/composition/model/test/IncludesTestCase.java
  
  Index: IncludesTestCase.java
  ===================================================================
  
  
  package org.apache.avalon.composition.model.test;
  
  import java.io.File;
  import java.io.IOException;
  import java.net.URL;
  import java.util.Date;
  
  import org.apache.avalon.composition.model.Model;
  import org.apache.avalon.composition.model.ContainmentModel;
  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.meta.info.DependencyDescriptor;
  
  public class IncludesTestCase extends AbstractTestCase
  {      
     //-------------------------------------------------------
     // constructor
     //-------------------------------------------------------
  
      public IncludesTestCase()
      {
          super( "includes.xml" );
      }
  
     //-------------------------------------------------------
     // tests
     //-------------------------------------------------------
  
     /**
      * Validate the the included block was created.
      */
      public void testInclusion() throws Exception
      {
          ContainmentModel test = (ContainmentModel) m_model.getModel( "test" );
          assertTrue( test != null );
      }
  }
  
  
  

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


Mime
View raw message