aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-maven/archiva-maven-proxy
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2020-06-16 10:32:06 +0200
committerMartin Stockhammer <martin_s@apache.org>2020-06-16 10:32:06 +0200
commit7a9803bf0f648db101ff9e76ef6a0f0bb2ecf09d (patch)
tree8ad8ae8ea3380acbec222a862562a0ec6c6f396a /archiva-modules/archiva-maven/archiva-maven-proxy
parentfbca0e89f9db5d20dcb096d2fbf7391160f48fd2 (diff)
downloadarchiva-7a9803bf0f648db101ff9e76ef6a0f0bb2ecf09d.tar.gz
archiva-7a9803bf0f648db101ff9e76ef6a0f0bb2ecf09d.zip
Switching to itemselector for repository API
Diffstat (limited to 'archiva-modules/archiva-maven/archiva-maven-proxy')
-rw-r--r--archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java7
-rw-r--r--archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/RemoteRepositoryContentMock.java15
2 files changed, 0 insertions, 22 deletions
diff --git a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java
index 11a7bf06f..bc506b15d 100644
--- a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java
+++ b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/ManagedRepositoryContentMock.java
@@ -43,7 +43,6 @@ import org.apache.archiva.repository.content.base.ArchivaVersion;
import org.apache.archiva.repository.storage.fs.FilesystemStorage;
import org.apache.archiva.repository.storage.RepositoryStorage;
import org.apache.archiva.repository.storage.StorageAsset;
-import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import java.io.IOException;
@@ -544,12 +543,6 @@ public class ManagedRepositoryContentMock implements BaseRepositoryContentLayout
}
@Override
- public String toPath( ArtifactReference reference )
- {
- return null;
- }
-
- @Override
public String toPath( ItemSelector selector )
{
return null;
diff --git a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/RemoteRepositoryContentMock.java b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/RemoteRepositoryContentMock.java
index 9312aaa68..6e51de0c0 100644
--- a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/RemoteRepositoryContentMock.java
+++ b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/RemoteRepositoryContentMock.java
@@ -20,7 +20,6 @@ package org.apache.archiva.repository.mock;
*/
import org.apache.archiva.common.utils.VersionUtil;
-import org.apache.archiva.model.ArtifactReference;
import org.apache.archiva.model.RepositoryURL;
import org.apache.archiva.repository.LayoutException;
import org.apache.archiva.repository.RemoteRepository;
@@ -66,20 +65,6 @@ public class RemoteRepositoryContentMock implements RemoteRepositoryContent
}
@Override
- public String toPath( ArtifactReference reference )
- {
- String baseVersion;
- if (VersionUtil.isSnapshot(reference.getVersion())) {
- baseVersion=VersionUtil.getBaseVersion(reference.getVersion());
- } else {
- baseVersion=reference.getVersion();
- }
- return reference.getGroupId().replaceAll("\\.", "/")+"/"+reference.getArtifactId()+"/"+baseVersion+"/"
- +reference.getArtifactId()+"-"+reference.getVersion()+(
- StringUtils.isNotEmpty(reference.getClassifier()) ? "-"+reference.getClassifier() : "")+"."+reference.getType();
- }
-
- @Override
public String toPath( ItemSelector selector )
{
String baseVersion;