summaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-06-29 13:29:57 +0000
committerOlivier Lamy <olamy@apache.org>2012-06-29 13:29:57 +0000
commite3885c59da2e4748e2ba494f3901902be0470067 (patch)
tree83d62ca49420c176a2d97ffd471846647f669984 /archiva-modules
parentd7026bf9b4d9e7acfa090040c9db38fc99e3504b (diff)
downloadarchiva-e3885c59da2e4748e2ba494f3901902be0470067.tar.gz
archiva-e3885c59da2e4748e2ba494f3901902be0470067.zip
avoid jackrabbit failure on deleting a test repo
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1355375 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java18
1 files changed, 14 insertions, 4 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java
index 96ce88b09..80ecdfcd6 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java
@@ -318,8 +318,7 @@ public class RepositoriesServiceTest
}
finally
{
- getManagedRepositoriesService( authorizationHeader ).deleteManagedRepository( managedRepository.getId(),
- true );
+ cleanQuietlyRepo( managedRepository.getId() );
}
}
@@ -336,8 +335,19 @@ public class RepositoriesServiceTest
}
finally
{
- getManagedRepositoriesService( authorizationHeader ).deleteManagedRepository( managedRepository.getId(),
- true );
+ cleanQuietlyRepo( managedRepository.getId() );
+ }
+ }
+
+ protected void cleanQuietlyRepo( String id )
+ {
+ try
+ {
+ getManagedRepositoriesService( authorizationHeader ).deleteManagedRepository( id, true );
+ }
+ catch ( Exception e )
+ {
+ log.info( "ignore issue deleting test repo: {}", e.getMessage() );
}
}