From a548587e47dec678af021f428c80f08ddc728177 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sat, 13 Jun 2020 17:24:09 +0200 Subject: Removing PathParser --- .../org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'archiva-modules/archiva-web/archiva-webdav/src') 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 54bd31501..08253aedd 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 @@ -34,6 +34,7 @@ import org.apache.archiva.configuration.ArchivaConfiguration; import org.apache.archiva.configuration.Configuration; import org.apache.archiva.configuration.FileTypes; import org.apache.archiva.configuration.RepositoryGroupConfiguration; +import org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator; import org.apache.archiva.repository.ManagedRepositoryContent; import org.apache.archiva.repository.maven.content.MavenContentHelper; import org.apache.archiva.repository.maven.metadata.storage.ArtifactMappingProvider; @@ -153,6 +154,10 @@ public class ArchivaDavResourceFactoryTest @Inject List artifactMappingProviders; + @Inject + @Named( "repositoryPathTranslator#maven2" ) + RepositoryPathTranslator pathTranslator; + @Inject FileLockManager fileLockManager; @@ -260,12 +265,14 @@ public class ArchivaDavResourceFactoryTest throws RepositoryAdminException { org.apache.archiva.repository.ManagedRepository repo = repositoryRegistry.getManagedRepository( repoId ); - ManagedDefaultRepositoryContent repoContent = new ManagedDefaultRepositoryContent(repo, artifactMappingProviders, fileTypes, fileLockManager); + ManagedDefaultRepositoryContent repoContent = new ManagedDefaultRepositoryContent(repo, fileTypes, fileLockManager); if (repo!=null && repo instanceof EditableManagedRepository) { ( (EditableManagedRepository) repo ).setContent( repoContent ); } repoContent.setMavenContentHelper( mavenContentHelper ); + repoContent.setArtifactMappingProviders( artifactMappingProviders ); + repoContent.setPathTranslator( pathTranslator ); return repoContent; } -- cgit v1.2.3