summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rss
diff options
context:
space:
mode:
authorEric Barboni <skygo@apache.org>2014-04-11 23:46:35 +0200
committerEric Barboni <skygo@apache.org>2014-04-11 23:46:35 +0200
commit99117364be2b27ddb74fc6ffe3e052e0ad52d8dd (patch)
tree5aa6ee887b1cf3c1659f83b7c561a728c0ee4555 /archiva-modules/archiva-web/archiva-rss
parentd44d957734badacce74293846d11b3b736b9a478 (diff)
downloadarchiva-99117364be2b27ddb74fc6ffe3e052e0ad52d8dd.tar.gz
archiva-99117364be2b27ddb74fc6ffe3e052e0ad52d8dd.zip
one move for all remaining override annotation
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rss')
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java3
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java3
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java1
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java36
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessorTest.java1
5 files changed, 44 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java
index 776274ae7..019c9e16a 100644
--- a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java
+++ b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessor.java
@@ -68,6 +68,7 @@ public class NewArtifactsRssFeedProcessor
* Process the newly discovered artifacts in the repository. Generate feeds for new artifacts in the repository and
* new versions of artifact.
*/
+ @Override
public SyndFeed process( Map<String, String> reqParams, MetadataRepository metadataRepository )
throws FeedException
{
@@ -145,11 +146,13 @@ public class NewArtifactsRssFeedProcessor
" during repository scan.", entries );
}
+ @Override
public String getTitle()
{
return title;
}
+ @Override
public String getDescription()
{
return desc;
diff --git a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java
index eb315d296..c6b046696 100644
--- a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java
+++ b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java
@@ -63,6 +63,7 @@ public class NewVersionsOfArtifactRssFeedProcessor
/**
* Process all versions of the artifact which had a rss feed request.
*/
+ @Override
public SyndFeed process( Map<String, String> reqParams, MetadataRepository metadataRepository )
throws FeedException
{
@@ -151,11 +152,13 @@ public class NewVersionsOfArtifactRssFeedProcessor
entries );
}
+ @Override
public String getTitle()
{
return title;
}
+ @Override
public String getDescription()
{
return desc;
diff --git a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java
index 40cab4f52..22524fc7d 100644
--- a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java
+++ b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java
@@ -45,6 +45,7 @@ public class RssFeedGeneratorTest
private RssFeedGenerator generator;
@Before
+ @Override
public void setUp()
throws Exception
{
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 4ab49fc47..dee82c93e 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
@@ -56,6 +56,7 @@ public class NewArtifactsRssFeedProcessorTest
private MetadataRepositoryMock metadataRepository;
@Before
+ @Override
public void setUp()
throws Exception
{
@@ -134,6 +135,7 @@ public class NewArtifactsRssFeedProcessorTest
private List<ArtifactMetadata> artifactsByDateRange;
+ @Override
public List<ArtifactMetadata> getArtifactsByDateRange( String repoId, Date from, Date to )
{
setRepoId( repoId );
@@ -142,6 +144,7 @@ public class NewArtifactsRssFeedProcessorTest
return artifactsByDateRange;
}
+ @Override
public void removeArtifact( String repositoryId, String namespace, String project, String version,
MetadataFacet metadataFacet )
throws MetadataRepositoryException
@@ -149,149 +152,178 @@ public class NewArtifactsRssFeedProcessorTest
throw new UnsupportedOperationException();
}
+ @Override
public void addMetadataFacet( String arg0, MetadataFacet arg1 )
{
throw new UnsupportedOperationException();
}
+ @Override
public void removeArtifact( String arg0, String arg1, String arg2, String arg3, String arg4 )
{
throw new UnsupportedOperationException();
}
+ @Override
public void removeRepository( String arg0 )
{
throw new UnsupportedOperationException();
}
+ @Override
public List<ArtifactMetadata> getArtifactsByChecksum( String arg0, String arg1 )
{
throw new UnsupportedOperationException();
}
+ @Override
public MetadataFacet getMetadataFacet( String arg0, String arg1, String arg2 )
{
throw new UnsupportedOperationException();
}
+ @Override
public List<String> getMetadataFacets( String arg0, String arg1 )
{
throw new UnsupportedOperationException();
}
+ @Override
public Collection<String> getRepositories()
{
throw new UnsupportedOperationException();
}
+ @Override
public void removeMetadataFacet( String arg0, String arg1, String arg2 )
{
throw new UnsupportedOperationException();
}
+ @Override
public void removeMetadataFacets( String arg0, String arg1 )
{
throw new UnsupportedOperationException();
}
+ @Override
public void updateArtifact( String arg0, String arg1, String arg2, String arg3, ArtifactMetadata arg4 )
{
throw new UnsupportedOperationException();
}
+ @Override
public void updateNamespace( String arg0, String arg1 )
{
throw new UnsupportedOperationException();
}
+ @Override
public void updateProject( String arg0, ProjectMetadata arg1 )
{
throw new UnsupportedOperationException();
}
+ @Override
public void updateProjectVersion( String arg0, String arg1, String arg2, ProjectVersionMetadata arg3 )
{
throw new UnsupportedOperationException();
}
+ @Override
public Collection<String> getArtifactVersions( String arg0, String arg1, String arg2, String arg3 )
{
throw new UnsupportedOperationException();
}
+ @Override
public Collection<ArtifactMetadata> getArtifacts( String arg0, String arg1, String arg2, String arg3 )
{
throw new UnsupportedOperationException();
}
+ @Override
public void save()
{
throw new UnsupportedOperationException();
}
+ @Override
public void close()
{
throw new UnsupportedOperationException();
}
+ @Override
public boolean hasMetadataFacet( String repositoryId, String facetId )
throws MetadataRepositoryException
{
return false;
}
+ @Override
public void revert()
{
throw new UnsupportedOperationException();
}
+ @Override
public boolean canObtainAccess( Class<?> aClass )
{
return false;
}
+ @Override
public <T>T obtainAccess( Class<T> aClass )
{
throw new UnsupportedOperationException();
}
+ @Override
public Collection<String> getNamespaces( String arg0, String arg1 )
{
throw new UnsupportedOperationException();
}
+ @Override
public ProjectMetadata getProject( String arg0, String arg1, String arg2 )
{
throw new UnsupportedOperationException();
}
+ @Override
public Collection<ProjectVersionReference> getProjectReferences( String arg0, String arg1, String arg2,
String arg3 )
{
throw new UnsupportedOperationException();
}
+ @Override
public ProjectVersionMetadata getProjectVersion( String arg0, String arg1, String arg2, String arg3 )
throws MetadataResolutionException
{
throw new UnsupportedOperationException();
}
+ @Override
public Collection<String> getProjectVersions( String arg0, String arg1, String arg2 )
{
throw new UnsupportedOperationException();
}
+ @Override
public Collection<String> getProjects( String arg0, String arg1 )
{
throw new UnsupportedOperationException();
}
+ @Override
public Collection<String> getRootNamespaces( String arg0 )
{
throw new UnsupportedOperationException();
}
+ @Override
public void removeProject( String repositoryId, String namespace, String projectId )
throws MetadataRepositoryException
{
@@ -333,23 +365,27 @@ public class NewArtifactsRssFeedProcessorTest
this.artifactsByDateRange = artifactsByDateRange;
}
+ @Override
public List<ArtifactMetadata> getArtifacts( String repositoryId )
{
return artifactsByDateRange;
}
+ @Override
public void removeArtifact( ArtifactMetadata artifactMetadata, String baseVersion )
throws MetadataRepositoryException
{
}
+ @Override
public void removeNamespace( String repositoryId, String namespace )
throws MetadataRepositoryException
{
}
+ @Override
public void removeProjectVersion( String repoId, String namespace, String projectId, String projectVersion )
throws MetadataRepositoryException
{
diff --git a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessorTest.java b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessorTest.java
index 97228260c..2b71c0f5c 100644
--- a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessorTest.java
+++ b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessorTest.java
@@ -58,6 +58,7 @@ public class NewVersionsOfArtifactRssFeedProcessorTest
private MetadataRepository metadataRepository;
@Before
+ @Override
public void setUp()
throws Exception
{