archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1233368 - in /archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services: AbstractArchivaRestTest.java ManagedRepositoriesServiceTest.java
Date Thu, 19 Jan 2012 13:33:34 GMT
Author: olamy
Date: Thu Jan 19 13:33:34 2012
New Revision: 1233368

URL: http://svn.apache.org/viewvc?rev=1233368&view=rev
Log:
cleanup bad content from previous builds: my bad !

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java
    archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/ManagedRepositoriesServiceTest.java

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java?rev=1233368&r1=1233367&r2=1233368&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java
Thu Jan 19 13:33:34 2012
@@ -298,6 +298,12 @@ public abstract class AbstractArchivaRes
         managedRepository.setId( testRepoId );
         managedRepository.setName( "test repo" );
 
+        File badContent = new File( repoPath, "target" );
+        if ( badContent.exists() )
+        {
+            FileUtils.deleteDirectory( badContent );
+        }
+
         managedRepository.setLocation( new File( repoPath ).getPath() );
         managedRepository.setIndexDirectory(
             System.getProperty( "java.io.tmpdir" ) + "/target/.index-" + Long.toString( new
Date().getTime() ) );

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/ManagedRepositoriesServiceTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/ManagedRepositoriesServiceTest.java?rev=1233368&r1=1233367&r2=1233368&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/ManagedRepositoriesServiceTest.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/ManagedRepositoriesServiceTest.java
Thu Jan 19 13:33:34 2012
@@ -114,8 +114,6 @@ public class ManagedRepositoriesServiceT
 
         ManagedRepositoriesService service = getManagedRepositoriesService( authorizationHeader
);
 
-        RepositoriesService repositoriesService = getRepositoriesService( authorizationHeader
);
-
         ArchivaRepositoryStatistics archivaRepositoryStatistics = service.getManagedRepositoryStatistics(
testRepoId );
 
         assertNotNull( archivaRepositoryStatistics );



Mime
View raw message