diff options
author | Martin Stockhammer <martin_s@apache.org> | 2020-02-29 18:52:24 +0100 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2020-02-29 18:52:24 +0100 |
commit | 24aba5ac73da0ad83caf43ce606f07cd57bc2891 (patch) | |
tree | d8c5c2262c6998e8331bb2f99549e995fc8c4abc /archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default | |
parent | de22e846edafd2ba8b06ab135be43b4c596c3db0 (diff) | |
download | archiva-24aba5ac73da0ad83caf43ce606f07cd57bc2891.tar.gz archiva-24aba5ac73da0ad83caf43ce606f07cd57bc2891.zip |
Moving storage utility methods to api module
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default')
-rw-r--r-- | archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java index f20b4ab1c..127c31483 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java @@ -44,7 +44,6 @@ import org.apache.archiva.repository.storage.FilesystemStorage; import org.apache.archiva.repository.storage.StorageAsset; import org.apache.archiva.repository.features.IndexCreationFeature; import org.apache.archiva.repository.features.RemoteIndexFeature; -import org.apache.archiva.repository.storage.StorageUtil; import org.apache.commons.lang3.StringUtils; import org.apache.maven.index.ArtifactContext; import org.apache.maven.index.ArtifactContextProducer; @@ -455,11 +454,7 @@ public class ArchivaIndexManagerMock implements ArchivaIndexManager { } catch (IOException e) { log.warn("Index close failed"); } - try { - StorageUtil.deleteRecursively(context.getPath()); - } catch (IOException e) { - throw new IndexUpdateFailedException("Could not delete index files"); - } + org.apache.archiva.repository.storage.util.StorageUtil.deleteRecursively(context.getPath()); }); try { Repository repo = context.getRepository(); |