aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-repository-api
diff options
context:
space:
mode:
authorMartin Stockhammer <martin.stockhammer@ars.de>2017-11-09 19:10:21 +0100
committerMartin Stockhammer <martin.stockhammer@ars.de>2017-11-09 19:10:21 +0100
commit6899bc54a794df885fc0d7bffc80ce48cf2592e7 (patch)
tree9ba3db0815d4117a9ef93922f592961c60ba035e /archiva-modules/archiva-base/archiva-repository-api
parent07d51cc35682c68ed29bf55714c9854c22a9347d (diff)
downloadarchiva-6899bc54a794df885fc0d7bffc80ce48cf2592e7.tar.gz
archiva-6899bc54a794df885fc0d7bffc80ce48cf2592e7.zip
Fxing unit tests for RepositoryRegistry
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-api')
-rw-r--r--archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/indexer/GenericIndexManager.java66
1 files changed, 66 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/indexer/GenericIndexManager.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/indexer/GenericIndexManager.java
new file mode 100644
index 000000000..2e9ee171c
--- /dev/null
+++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/indexer/GenericIndexManager.java
@@ -0,0 +1,66 @@
+package org.apache.archiva.indexer;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.apache.archiva.model.ArtifactReference;
+import org.apache.archiva.repository.Repository;
+import org.apache.archiva.repository.RepositoryType;
+import org.springframework.stereotype.Service;
+
+import java.net.URI;
+
+@Service("indexManager#none")
+public class GenericIndexManager implements ArchivaIndexManager {
+
+ @Override
+ public void pack(ArchivaIndexingContext context) {
+
+ }
+
+ @Override
+ public void scan(ArchivaIndexingContext context, boolean update) {
+
+ }
+
+ @Override
+ public void update(ArchivaIndexingContext context, URI remoteUpdateUri, boolean fullUpdate) {
+
+ }
+
+ @Override
+ public void addArtifactToIndex(ArchivaIndexingContext context, ArtifactReference artifactReference) {
+
+ }
+
+ @Override
+ public void removeArtifactFromIndex(ArchivaIndexingContext context, ArtifactReference artifactReference) {
+
+ }
+
+ @Override
+ public boolean supportsRepository(RepositoryType type) {
+ return false;
+ }
+
+ @Override
+ public ArchivaIndexingContext createContext(Repository repository) {
+ return null;
+ }
+}