avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon/repository/test/src/test/org/apache/avalon/repository/main DefaultInitialContextTest.java
Date Sat, 06 Dec 2003 23:51:08 GMT
mcconnell    2003/12/06 15:51:08

  Modified:    repository/test/src/test/org/apache/avalon/repository/main
                        DefaultInitialContextTest.java
  Log:
  Sync. with updates to utilities.
  
  Revision  Changes    Path
  1.2       +18 -2     avalon/repository/test/src/test/org/apache/avalon/repository/main/DefaultInitialContextTest.java
  
  Index: DefaultInitialContextTest.java
  ===================================================================
  RCS file: /home/cvs/avalon/repository/test/src/test/org/apache/avalon/repository/main/DefaultInitialContextTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultInitialContextTest.java	4 Dec 2003 19:34:58 -0000	1.1
  +++ DefaultInitialContextTest.java	6 Dec 2003 23:51:08 -0000	1.2
  @@ -60,11 +60,11 @@
   import org.apache.avalon.repository.Repository ;
   import org.apache.avalon.repository.RepositoryException ;
   import org.apache.avalon.repository.provider.CacheManager ;
  +import org.apache.avalon.repository.provider.Factory ;
   import org.apache.avalon.repository.provider.InitialContext ;
   
   import org.apache.avalon.util.env.Env;
   import org.apache.avalon.util.exception.ExceptionHelper;
  -import org.apache.avalon.util.factory.Factory;
   
   /**
    * 
  @@ -96,6 +96,22 @@
             new DefaultInitialContext( 
               getMavenRepositoryDirectory(),
               getDefaultHosts() );
  +
  +        assertEquals( 
  +          "cache", 
  +          context.getInitialCacheDirectory(), 
  +          getMavenRepositoryDirectory() );
  +
  +        String[] defaults = getDefaultHosts();
  +        String[] hosts = context.getInitialHosts();
  +        assertNotNull( "hosts", hosts );
  +        assertEquals( "hosts count", defaults.length, hosts.length );
  +
  +        for( int i=0; i<defaults.length; i++ )
  +        {
  +            assertEquals( 
  +              "host", defaults[i], hosts[i] );
  +        }
   
           Factory factory = context.getInitialFactory();
           assertNotNull( factory );
  
  
  

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


Mime
View raw message