From: Brett Porter Date: Thu, 30 Dec 2010 08:54:16 +0000 (+0000) Subject: [MRM-1443, MRM-1327] allow repository-statistics module to optimise statistics genera... X-Git-Tag: archiva-1.4-M1~841 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=23a09c2024cd82ac899b70a48b87e22a6c802078;p=archiva.git [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 --- 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 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 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 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 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