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 Sun, 07 Dec 2003 03:15:16 GMT
mcconnell    2003/12/06 19:15:16

  Modified:    repository/test/src/test/org/apache/avalon/repository/main
                        DefaultInitialContextTest.java
  Log:
  Update factory to return a CacheManager instead of a Repository so that consumer components
can do privaliged things like resource installation.
  
  Revision  Changes    Path
  1.3       +5 -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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultInitialContextTest.java	6 Dec 2003 23:51:08 -0000	1.2
  +++ DefaultInitialContextTest.java	7 Dec 2003 03:15:16 -0000	1.3
  @@ -116,7 +116,10 @@
           Factory factory = context.getInitialFactory();
           assertNotNull( factory );
   
  -        Repository repository = (Repository ) factory.create() ;
  +        CacheManager manager = (CacheManager) factory.create() ;
  +        assertNotNull( manager ) ;
  +   
  +        Repository repository = manager.createRepository() ;
           assertNotNull( repository ) ;
           
           Artifact artifact = Artifact.createArtifact( 
  
  
  

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


Mime
View raw message