avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject cvs commit: avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository InitialRepositoryFactory.java RepositoryUtils.java
Date Sun, 09 Nov 2003 09:14:26 GMT
akarasulu    2003/11/09 01:14:26

  Modified:    repository/spi/src/test/org/apache/avalon/repository
                        JarBuildDescriptorTest.java
                        RepositoryUtilsTest.java
  Removed:     repository/spi/src/java/org/apache/avalon/repository
                        InitialRepositoryFactory.java RepositoryUtils.java
  Log:
  Checkpointing
  
  Revision  Changes    Path
  1.3       +3 -3      avalon-sandbox/repository/spi/src/test/org/apache/avalon/repository/JarBuildDescriptorTest.java
  
  Index: JarBuildDescriptorTest.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/repository/spi/src/test/org/apache/avalon/repository/JarBuildDescriptorTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JarBuildDescriptorTest.java	7 Nov 2003 12:50:55 -0000	1.2
  +++ JarBuildDescriptorTest.java	9 Nov 2003 09:14:26 -0000	1.3
  @@ -101,7 +101,7 @@
           assertNotNull( l_descriptor ) ;
           
           JarDescriptor l_jarDescriptor = l_descriptor.getJarDescriptor() ;
  -        String l_url = l_descriptor.getDefaultRepository() ; 
  +        String l_url = l_descriptor.getDefaultRepositories()[0] ;
           assertEquals( l_url, "http://www.ibiblio.org/maven" ) ;
           assertEquals( l_jarDescriptor.getGroup(),
                   "avalon-repository" ) ;
  
  
  
  1.2       +25 -2     avalon-sandbox/repository/spi/src/test/org/apache/avalon/repository/RepositoryUtilsTest.java
  
  Index: RepositoryUtilsTest.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/repository/spi/src/test/org/apache/avalon/repository/RepositoryUtilsTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RepositoryUtilsTest.java	7 Nov 2003 05:30:46 -0000	1.1
  +++ RepositoryUtilsTest.java	9 Nov 2003 09:14:26 -0000	1.2
  @@ -198,4 +198,27 @@
           assertEquals( "asdf", 
                   RepositoryUtils.getEnumeratedBase( "asdf.1" ) ) ;
       }
  +    
  +    
  +    public void testGetDelimited() throws Exception
  +    {
  +        String [] l_processed = null ;
  +        assertNull( RepositoryUtils.getDelimited( ',', null) ) ;
  +        assertNull( RepositoryUtils.getDelimited( ',', "") ) ;
  +
  +        l_processed = RepositoryUtils.getDelimited( ',',
  +                "asdf" ) ;
  +        assertEquals( "asdf", l_processed[0] ) ;
  +
  +        l_processed = RepositoryUtils.getDelimited( ',',
  +                "asdf,1234" ) ;
  +        assertEquals( "asdf", l_processed[0] ) ;
  +        assertEquals( "1234", l_processed[1] ) ;
  +        
  +        l_processed = RepositoryUtils.getDelimited( ',',
  +                "asdf,1234,abcd" ) ;
  +        assertEquals( "asdf", l_processed[0] ) ;
  +        assertEquals( "1234", l_processed[1] ) ;
  +        assertEquals( "abcd", l_processed[2] ) ;
  +    }
   }
  
  
  

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


Mime
View raw message