]> source.dussan.org Git - archiva.git/commitdiff
updated comment
authorMaria Odea B. Ching <oching@apache.org>
Mon, 13 Oct 2008 06:16:32 +0000 (06:16 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Mon, 13 Oct 2008 06:16:32 +0000 (06:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches@703921 13f79535-47bb-0310-9956-ffa450edef68

MRM-124/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/test/java/org/apache/archiva/web/xmlrpc/services/AdministrationServiceImplTest.java

index 59d24519c42e03dc9e366114f9300ba1f2d6d96d..3a530d7e4642db95d7de57f7316650c6d4e97974 100644 (file)
@@ -843,6 +843,8 @@ public class AdministrationServiceImplTest
         assertEquals( expectedRepoConfig.getId(), managedRepo.getId() );
         assertEquals( expectedRepoConfig.getLayout(), managedRepo.getLayout() );
         assertEquals( expectedRepoConfig.getName(), managedRepo.getName() );
+        
+        //TODO enable assert once fixed in AdministrationServiceImpl!
         //assertEquals( "http://localhost:8080/archiva/repository/" + expectedRepoConfig.getId(), managedRepo.getUrl() );
         assertEquals( expectedRepoConfig.isReleases(), managedRepo.isReleases() );
         assertEquals( expectedRepoConfig.isSnapshots(), managedRepo.isSnapshots() );
@@ -900,22 +902,6 @@ public class AdministrationServiceImplTest
         unprocessedConsumersControl.expectAndReturn( processPomConsumer.getId(), "process-pom" );
     }    
     
-    private List<ArchivaArtifact> getArtifacts()
-    {
-        List<ArchivaArtifact> artifacts = new ArrayList<ArchivaArtifact>();
-        
-        ArchivaArtifactModel model = new ArchivaArtifactModel();
-        model.setRepositoryId( "internal" );
-        model.setGroupId( "org.apache.archiva" );
-        model.setArtifactId( "archiva-test" );
-        model.setVersion( "1.0" );
-        model.setType( "jar" );
-        
-        ArchivaArtifact artifact = new ArchivaArtifact( model );
-        artifacts.add( artifact );
-        return artifacts;
-    }    
-    
     private void recordInManagedLegacyRepoContent( MockControl fileTypesControl, FileTypes fileTypes,
                                                    MockControl pathParserControl, PathParser parser )
         throws LayoutException
@@ -945,6 +931,22 @@ public class AdministrationServiceImplTest
         aRef = createArtifactReference("archiva-test", "org.apache.archiva", "1.1", "jar");
         pathParserControl.expectAndReturn( parser.toArtifactReference( "org.apache.archiva/jars/archiva-test-1.1.jar" ), aRef );
     }
+    
+    private List<ArchivaArtifact> getArtifacts()
+    {
+        List<ArchivaArtifact> artifacts = new ArrayList<ArchivaArtifact>();
+        
+        ArchivaArtifactModel model = new ArchivaArtifactModel();
+        model.setRepositoryId( "internal" );
+        model.setGroupId( "org.apache.archiva" );
+        model.setArtifactId( "archiva-test" );
+        model.setVersion( "1.0" );
+        model.setType( "jar" );
+        
+        ArchivaArtifact artifact = new ArchivaArtifact( model );
+        artifacts.add( artifact );
+        return artifacts;
+    }
 
     private ArtifactReference createArtifactReference( String artifactId, String groupId, String version, String type )
     {