From 2e95b7d4ba9c9fabf66ba0940790b49273321b28 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 6 Sep 2012 12:39:14 +0000 Subject: [PATCH] fix mocks compilation git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1381582 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/metadata/repository/TestMetadataRepository.java | 6 ++++++ .../indexer/search/mock/MockRepositorySessionFactory.java | 6 ++++++ .../archiva/metadata/repository/TestMetadataRepository.java | 6 ++++++ .../archiva/admin/mock/MockRepositorySessionFactory.java | 6 ++++++ .../indexing/mock/MockRepositorySessionFactory.java | 6 ++++++ .../rss/processor/NewArtifactsRssFeedProcessorTest.java | 6 ++++++ .../archiva/webtest/memory/TestMetadataRepository.java | 6 ++++++ .../archiva/metadata/repository/TestMetadataRepository.java | 6 ++++++ .../archiva/metadata/repository/TestMetadataRepository.java | 6 ++++++ 9 files changed, 54 insertions(+) diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java index dd48e5cdb..b3effd9c9 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java @@ -195,4 +195,10 @@ public class TestMetadataRepository { throw new UnsupportedOperationException(); } + + public void removeNamespace( String repositoryId, String namespace ) + throws MetadataRepositoryException + { + + } } diff --git a/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java b/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java index 93323f0cc..cdaee822e 100644 --- a/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java +++ b/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java @@ -254,6 +254,12 @@ public class MockRepositorySessionFactory { return null; //To change body of implemented methods use File | Settings | File Templates. } + + public void removeNamespace( String repositoryId, String namespace ) + throws MetadataRepositoryException + { + + } }; } }; diff --git a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java index a3a9f3585..cfc5a9732 100644 --- a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java +++ b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java @@ -200,4 +200,10 @@ public class TestMetadataRepository { throw new UnsupportedOperationException(); } + + public void removeNamespace( String repositoryId, String namespace ) + throws MetadataRepositoryException + { + + } } diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java index c40dbd836..9be74fa74 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java @@ -254,6 +254,12 @@ public class MockRepositorySessionFactory { return null; //To change body of implemented methods use File | Settings | File Templates. } + + public void removeNamespace( String repositoryId, String namespace ) + throws MetadataRepositoryException + { + + } }; } }; diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java index afbf82183..217338775 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java @@ -254,6 +254,12 @@ public class MockRepositorySessionFactory { return null; //To change body of implemented methods use File | Settings | File Templates. } + + public void removeNamespace( String repositoryId, String namespace ) + throws MetadataRepositoryException + { + + } }; } }; diff --git a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java index f644c1731..d53314266 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java +++ b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java @@ -331,5 +331,11 @@ public class NewArtifactsRssFeedProcessorTest { } + + public void removeNamespace( String repositoryId, String namespace ) + throws MetadataRepositoryException + { + + } } } diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/webtest/memory/TestMetadataRepository.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/webtest/memory/TestMetadataRepository.java index b98ee5e02..8702ee366 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/webtest/memory/TestMetadataRepository.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/webtest/memory/TestMetadataRepository.java @@ -235,4 +235,10 @@ public class TestMetadataRepository { throw new UnsupportedOperationException(); } + + public void removeNamespace( String repositoryId, String namespace ) + throws MetadataRepositoryException + { + + } } \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java index fe01ff753..f15ac0e63 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java @@ -196,4 +196,10 @@ public class TestMetadataRepository { throw new UnsupportedOperationException(); } + + public void removeNamespace( String repositoryId, String namespace ) + throws MetadataRepositoryException + { + + } } diff --git a/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java b/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java index 564464013..3f615c09b 100644 --- a/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java +++ b/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataRepository.java @@ -211,4 +211,10 @@ public class TestMetadataRepository { throw new UnsupportedOperationException(); } + + public void removeNamespace( String repositoryId, String namespace ) + throws MetadataRepositoryException + { + + } } \ No newline at end of file -- 2.39.5