diff options
author | Martin Stockhammer <martin_s@apache.org> | 2020-06-07 19:32:53 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2020-06-07 19:32:53 +0200 |
commit | b942314aa27330a179acf17300fea6849bf89d4d (patch) | |
tree | e3b24524eef26a682b914e504ec2b75b482a68c7 /archiva-modules/archiva-maven/archiva-maven-proxy/src | |
parent | aa8de8c74bf32637227d55b583e3d75979eadaff (diff) | |
download | archiva-b942314aa27330a179acf17300fea6849bf89d4d.tar.gz archiva-b942314aa27330a179acf17300fea6849bf89d4d.zip |
Removing unused repository API method
Diffstat (limited to 'archiva-modules/archiva-maven/archiva-maven-proxy/src')
2 files changed, 0 insertions, 31 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 7048470d8..3730c20d6 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 @@ -369,31 +369,6 @@ public class ManagedRepositoryContentMock implements BaseRepositoryContentLayout private Map<ArtifactReference, String> refs = new HashMap<>(); - @Override - public ArtifactReference toArtifactReference( String path ) throws LayoutException - { - if ( StringUtils.isBlank( path ) ) - { - throw new LayoutException( "Unable to convert blank path." ); - } - - ArtifactMetadata metadata = getArtifactForPath("test-repository", path); - - ArtifactReference artifact = new ArtifactReference(); - artifact.setGroupId( metadata.getNamespace() ); - artifact.setArtifactId( metadata.getProject() ); - artifact.setVersion( metadata.getVersion() ); - artifact.setProjectVersion( metadata.getProjectVersion( ) ); - MavenArtifactFacet facet = (MavenArtifactFacet) metadata.getFacet( MavenArtifactFacet.FACET_ID ); - if ( facet != null ) - { - artifact.setClassifier( facet.getClassifier() ); - artifact.setType( facet.getType() ); - } - refs.put(artifact, path); - return artifact; - } - public ArtifactMetadata getArtifactForPath( String repoId, String relativePath ) { String[] parts = relativePath.replace( '\\', '/' ).split( "/" ); 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 057d09a93..168ed3dbc 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 @@ -66,12 +66,6 @@ public class RemoteRepositoryContentMock implements RemoteRepositoryContent } @Override - public ArtifactReference toArtifactReference( String path ) throws LayoutException - { - return null; - } - - @Override public String toPath( ArtifactReference reference ) { String baseVersion; |