diff options
author | Martin Stockhammer <martin_s@apache.org> | 2020-06-02 22:53:18 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2020-06-02 22:53:18 +0200 |
commit | 873753536bbc1cd1639016ae845625f631f3cff1 (patch) | |
tree | 0345e0a67b08ceae743a8a8fb8e7db5772a9dceb /archiva-modules/archiva-web/archiva-webdav | |
parent | 22a8cbfd22c8cfb33a8d4e3e82cf22a7c03df68b (diff) | |
download | archiva-873753536bbc1cd1639016ae845625f631f3cff1.tar.gz archiva-873753536bbc1cd1639016ae845625f631f3cff1.zip |
Switching to new repository layout
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java index c4d9c1b46..993935519 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java @@ -35,6 +35,7 @@ import org.apache.archiva.configuration.Configuration; import org.apache.archiva.configuration.FileTypes; import org.apache.archiva.configuration.RepositoryGroupConfiguration; import org.apache.archiva.repository.ManagedRepositoryContent; +import org.apache.archiva.repository.maven.content.MavenContentHelper; import org.apache.archiva.repository.maven.metadata.storage.ArtifactMappingProvider; import org.apache.archiva.proxy.ProxyRegistry; import org.apache.archiva.repository.EditableManagedRepository; @@ -68,6 +69,7 @@ import org.springframework.context.ConfigurableApplicationContext; import org.springframework.test.context.ContextConfiguration; import javax.inject.Inject; +import javax.inject.Named; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; @@ -141,6 +143,9 @@ public class ArchivaDavResourceFactoryTest @Inject ProxyRegistry proxyRegistry; + @Inject + @Named( "MavenContentHelper" ) + MavenContentHelper mavenContentHelper; @Inject DefaultRepositoryGroupAdmin defaultRepositoryGroupAdmin; @@ -255,11 +260,12 @@ public class ArchivaDavResourceFactoryTest throws RepositoryAdminException { org.apache.archiva.repository.ManagedRepository repo = repositoryRegistry.getManagedRepository( repoId ); - ManagedRepositoryContent repoContent = new ManagedDefaultRepositoryContent(repo, artifactMappingProviders, fileTypes, fileLockManager); + ManagedDefaultRepositoryContent repoContent = new ManagedDefaultRepositoryContent(repo, artifactMappingProviders, fileTypes, fileLockManager); if (repo!=null && repo instanceof EditableManagedRepository) { ( (EditableManagedRepository) repo ).setContent( repoContent ); } + repoContent.setMavenContentHelper( mavenContentHelper ); return repoContent; } |