From dac24551d0b9e31b21d23db1b1bb96c2e3a657e1 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Mon, 10 Jun 2019 10:15:25 +0200 Subject: Changes for updated interfaces --- .../repository/mock/RepositoryProviderMock.java | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'archiva-modules') diff --git a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/RepositoryProviderMock.java b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/RepositoryProviderMock.java index 691d7eefa..cae8337b3 100644 --- a/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/RepositoryProviderMock.java +++ b/archiva-modules/archiva-maven/archiva-maven-proxy/src/test/java/org/apache/archiva/repository/mock/RepositoryProviderMock.java @@ -21,10 +21,12 @@ package org.apache.archiva.repository.mock; import org.apache.archiva.configuration.ManagedRepositoryConfiguration; import org.apache.archiva.configuration.RemoteRepositoryConfiguration; +import org.apache.archiva.configuration.RepositoryGroupConfiguration; import org.apache.archiva.repository.BasicManagedRepository; import org.apache.archiva.repository.BasicRemoteRepository; import org.apache.archiva.repository.EditableManagedRepository; import org.apache.archiva.repository.EditableRemoteRepository; +import org.apache.archiva.repository.EditableRepositoryGroup; import org.apache.archiva.repository.ManagedRepository; import org.apache.archiva.repository.PasswordCredentials; import org.apache.archiva.repository.ReleaseScheme; @@ -32,6 +34,7 @@ import org.apache.archiva.repository.RemoteRepository; import org.apache.archiva.repository.RepositoryCredentials; import org.apache.archiva.repository.RepositoryEvent; import org.apache.archiva.repository.RepositoryException; +import org.apache.archiva.repository.RepositoryGroup; import org.apache.archiva.repository.RepositoryProvider; import org.apache.archiva.repository.RepositoryType; import org.apache.archiva.repository.features.ArtifactCleanupFeature; @@ -80,6 +83,12 @@ public class RepositoryProviderMock implements RepositoryProvider return new BasicRemoteRepository( id, name, Paths.get("target/remotes") ); } + @Override + public EditableRepositoryGroup createRepositoryGroup( String id, String name ) + { + return null; + } + @Override public ManagedRepository createManagedInstance( ManagedRepositoryConfiguration configuration ) throws RepositoryException { @@ -177,6 +186,18 @@ public class RepositoryProviderMock implements RepositoryProvider } + @Override + public RepositoryGroup createRepositoryGroup( RepositoryGroupConfiguration configuration ) throws RepositoryException + { + return null; + } + + @Override + public void updateRepositoryGroupInstance( EditableRepositoryGroup repositoryGroup, RepositoryGroupConfiguration configuration ) throws RepositoryException + { + + } + @Override public ManagedRepositoryConfiguration getManagedConfiguration( ManagedRepository managedRepository ) throws RepositoryException { @@ -203,6 +224,12 @@ public class RepositoryProviderMock implements RepositoryProvider return configuration; } + @Override + public RepositoryGroupConfiguration getRepositoryGroupConfiguration( RepositoryGroup repositoryGroup ) throws RepositoryException + { + return null; + } + @Override public RemoteRepositoryConfiguration getRemoteConfiguration( RemoteRepository remoteRepository ) throws RepositoryException -- cgit v1.2.3