|
|
@@ -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 |