diff options
author | Martin Stockhammer <martin_s@apache.org> | 2021-06-04 17:44:30 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2021-06-04 17:44:30 +0200 |
commit | a1b92c562fae957e601875e50f87a3ff93fecfd6 (patch) | |
tree | d2efb37aafbf235b4b3d1d9d9d117ebaa315cc24 /archiva-modules/archiva-base/archiva-consumers | |
parent | 0ce53483a85b6b7a3a14417434edf56934b474ba (diff) | |
download | archiva-a1b92c562fae957e601875e50f87a3ff93fecfd6.tar.gz archiva-a1b92c562fae957e601875e50f87a3ff93fecfd6.zip |
Fixing Index context creation
Diffstat (limited to 'archiva-modules/archiva-base/archiva-consumers')
2 files changed, 15 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/java/RepositoryProviderMock.java b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/java/RepositoryProviderMock.java index 6f1907ef0..8abed28c5 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/java/RepositoryProviderMock.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/java/RepositoryProviderMock.java @@ -22,6 +22,8 @@ package $package; import org.apache.archiva.configuration.ManagedRepositoryConfiguration; import org.apache.archiva.configuration.RemoteRepositoryConfiguration; import org.apache.archiva.configuration.RepositoryGroupConfiguration; +import org.apache.archiva.event.EventHandler; +import org.apache.archiva.event.EventType; import org.apache.archiva.repository.base.BasicManagedRepository; import org.apache.archiva.repository.base.BasicRemoteRepository; import org.apache.archiva.repository.EditableManagedRepository; @@ -37,6 +39,7 @@ import org.apache.archiva.repository.RepositoryException; import org.apache.archiva.repository.RepositoryProvider; import org.apache.archiva.repository.RepositoryType; import org.apache.archiva.event.Event; +import org.apache.archiva.repository.event.RepositoryEvent; import org.apache.archiva.repository.features.ArtifactCleanupFeature; import org.apache.archiva.repository.features.IndexCreationFeature; import org.apache.archiva.repository.features.RemoteIndexFeature; @@ -280,5 +283,8 @@ public class RepositoryProviderMock implements RepositoryProvider } - + public void addRepositoryEventHandler( EventHandler<? super RepositoryEvent> eventHandler ) + { + // do nothing + } } diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/repository/mock/RepositoryProviderMock.java b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/repository/mock/RepositoryProviderMock.java index eaa94e32f..d11008a68 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/repository/mock/RepositoryProviderMock.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/repository/mock/RepositoryProviderMock.java @@ -22,6 +22,7 @@ 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.event.EventHandler; import org.apache.archiva.repository.base.BasicManagedRepository; import org.apache.archiva.repository.base.BasicRemoteRepository; import org.apache.archiva.repository.EditableManagedRepository; @@ -37,6 +38,7 @@ 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.event.RepositoryEvent; import org.apache.archiva.repository.features.ArtifactCleanupFeature; import org.apache.archiva.repository.features.IndexCreationFeature; import org.apache.archiva.repository.features.RemoteIndexFeature; @@ -253,6 +255,12 @@ public class RepositoryProviderMock implements RepositoryProvider return null; } + @Override + public void addRepositoryEventHandler( EventHandler<? super RepositoryEvent> eventHandler ) + { + // do nothing + } + @Override public RemoteRepositoryConfiguration getRemoteConfiguration( RemoteRepository remoteRepository ) |