[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
This commit is contained in:
Brett Porter 2010-12-30 08:54:16 +00:00
parent 479f10cb7f
commit 23a09c2024
5 changed files with 50 additions and 0 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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;

View File

@ -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;

View File

@ -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.
}
}