aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webdav/src
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2020-06-13 17:24:09 +0200
committerMartin Stockhammer <martin_s@apache.org>2020-06-13 17:24:09 +0200
commita548587e47dec678af021f428c80f08ddc728177 (patch)
tree5e1c3644eadc443007b29745be0dc3922468b665 /archiva-modules/archiva-web/archiva-webdav/src
parentb804db659977514037ea19b2cc473fcba9701a67 (diff)
downloadarchiva-a548587e47dec678af021f428c80f08ddc728177.tar.gz
archiva-a548587e47dec678af021f428c80f08ddc728177.zip
Removing PathParser
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav/src')
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java9
1 files changed, 8 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 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;
@@ -154,6 +155,10 @@ public class ArchivaDavResourceFactoryTest
List<? extends ArtifactMappingProvider> artifactMappingProviders;
@Inject
+ @Named( "repositoryPathTranslator#maven2" )
+ RepositoryPathTranslator pathTranslator;
+
+ @Inject
FileLockManager fileLockManager;
@Inject
@@ -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;
}