maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r673897 - /maven/artifact/trunk/src/test/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactoryTest.java
Date Fri, 04 Jul 2008 03:25:13 GMT
Author: jvanzyl
Date: Thu Jul  3 20:25:13 2008
New Revision: 673897

URL: http://svn.apache.org/viewvc?rev=673897&view=rev
Log:
o creating deployment repositories appears to be working fine in the artifact code.

Modified:
    maven/artifact/trunk/src/test/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactoryTest.java

Modified: maven/artifact/trunk/src/test/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactoryTest.java
URL: http://svn.apache.org/viewvc/maven/artifact/trunk/src/test/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactoryTest.java?rev=673897&r1=673896&r2=673897&view=diff
==============================================================================
--- maven/artifact/trunk/src/test/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactoryTest.java
(original)
+++ maven/artifact/trunk/src/test/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactoryTest.java
Thu Jul  3 20:25:13 2008
@@ -73,13 +73,22 @@
     public void testRetrievalOfKnownRepositoryLayouts()
         throws Exception
     {
-        ArtifactRepositoryLayout defaultLayout = repoFactory.getLayout( "default" ); 
+        ArtifactRepositoryLayout defaultLayout = repoFactory.getLayout( "default" );
         assertNotNull( defaultLayout );
-        
-        ArtifactRepositoryLayout legacyLayout = repoFactory.getLayout( "legacy" ); 
+
+        ArtifactRepositoryLayout legacyLayout = repoFactory.getLayout( "legacy" );
         assertNotNull( legacyLayout );
-        
-        ArtifactRepositoryLayout flatLayout = repoFactory.getLayout( "flat" ); 
-        assertNotNull( flatLayout );        
+
+        ArtifactRepositoryLayout flatLayout = repoFactory.getLayout( "flat" );
+        assertNotNull( flatLayout );
+    }
+
+    public void testCreationOfDeploymentRepository()
+        throws Exception
+    {
+        ArtifactRepository repository = repoFactory.createDeploymentArtifactRepository( "id",
"file:///tmp/repo", "default", false );
+        assertNotNull( repository );        
+        assertNotNull( repository.getLayout() );
+        assertEquals( "id", repository.getId() );        
     }
 }



Mime
View raw message