diff options
author | Brett Porter <brett@apache.org> | 2010-12-30 08:54:16 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2010-12-30 08:54:16 +0000 |
commit | 23a09c2024cd82ac899b70a48b87e22a6c802078 (patch) | |
tree | a6760b64418813164bf4765d3f94cfca00d43769 | |
parent | 479f10cb7fc099f0faa0c197e5426bfd3777b5e9 (diff) | |
download | archiva-23a09c2024cd82ac899b70a48b87e22a6c802078.tar.gz archiva-23a09c2024cd82ac899b70a48b87e22a6c802078.zip |
[MRM-1443, MRM-1327] allow repository-statistics module to optimise statistics generation if JCR store is available
- updates to other mock repositories
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1053826 13f79535-47bb-0310-9956-ffa450edef68
5 files changed, 50 insertions, 0 deletions
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 f100aa191..2d8584e4d 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 @@ -176,6 +176,16 @@ public class TestMetadataRepository //To change body of implemented methods use File | Settings | File Templates. } + public boolean canObtainAccess( Class<?> aClass ) + { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + public Object obtainAccess( Class<?> aClass ) + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + public List<ArtifactMetadata> getArtifacts( String repositoryId ) { return null; 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 96a87e09f..796f32dab 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 @@ -231,6 +231,16 @@ public class NewArtifactsRssFeedProcessorTest throw new UnsupportedOperationException(); } + public boolean canObtainAccess( Class<?> aClass ) + { + return false; + } + + public Object obtainAccess( Class<?> aClass ) + { + throw new UnsupportedOperationException(); + } + public Collection<String> getNamespaces( String arg0, String arg1 ) { throw new UnsupportedOperationException(); diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/metadata/repository/memory/TestMetadataRepository.java b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/metadata/repository/memory/TestMetadataRepository.java index 7d1528ad4..b1d60e7e4 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/metadata/repository/memory/TestMetadataRepository.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/metadata/repository/memory/TestMetadataRepository.java @@ -213,6 +213,16 @@ public class TestMetadataRepository throw new UnsupportedOperationException(); } + public boolean canObtainAccess( Class<?> aClass ) + { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + public Object obtainAccess( Class<?> aClass ) + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + public List<ArtifactMetadata> getArtifacts( String repositoryId ) { return artifacts; 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 2c16fc6d1..40db2513d 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 @@ -176,6 +176,16 @@ public class TestMetadataRepository //To change body of implemented methods use File | Settings | File Templates. } + public boolean canObtainAccess( Class<?> aClass ) + { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + public Object obtainAccess( Class<?> aClass ) + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + public List<ArtifactMetadata> getArtifacts( String repositoryId ) { return null; 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 a75457301..bd07c142a 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 @@ -192,4 +192,14 @@ public class TestMetadataRepository { //To change body of implemented methods use File | Settings | File Templates. } + + public boolean canObtainAccess( Class<?> aClass ) + { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + public Object obtainAccess( Class<?> aClass ) + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } }
\ No newline at end of file |