diff options
author | Brett Porter <brett@apache.org> | 2010-03-16 00:21:13 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2010-03-16 00:21:13 +0000 |
commit | 2e9c35d4aa247c1c1d12213e6d4261b25db69d9f (patch) | |
tree | 79d42f1e74fb9795c4084ccd223ade6ffdf6ffb0 /archiva-modules/archiva-web/archiva-rss | |
parent | b7810bb5f8c14aba0ca5b2629b024573e48d510a (diff) | |
download | archiva-2e9c35d4aa247c1c1d12213e6d4261b25db69d9f.tar.gz archiva-2e9c35d4aa247c1c1d12213e6d4261b25db69d9f.zip |
[MRM-1329] Start to revise Javadoc of APIs
- additionally, add projectVersion to the ArtifactMetadata so that the full coordinate is available.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@923520 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rss')
2 files changed, 17 insertions, 15 deletions
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 5c9670f6a..924715ef0 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 @@ -19,14 +19,6 @@ package org.apache.archiva.rss.processor; * under the License. */ -import java.util.ArrayList; -import java.util.Calendar; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.TimeZone; - import com.sun.syndication.feed.synd.SyndEntry; import com.sun.syndication.feed.synd.SyndFeed; import org.apache.archiva.metadata.model.ArtifactMetadata; @@ -35,6 +27,14 @@ import org.apache.archiva.rss.RssFeedGenerator; import org.codehaus.plexus.spring.PlexusInSpringTestCase; import org.easymock.MockControl; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.TimeZone; + public class NewArtifactsRssFeedProcessorTest extends PlexusInSpringTestCase { @@ -111,6 +111,7 @@ public class NewArtifactsRssFeedProcessorTest artifact.setRepositoryId( TEST_REPO ); artifact.setWhenGathered( whenGathered ); artifact.setProject( artifactId ); + artifact.setProjectVersion( version ); artifact.setVersion( version ); return artifact; } 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 b1cdf7cf8..043293db6 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 @@ -19,13 +19,6 @@ package org.apache.archiva.rss.processor; * under the License. */ -import java.util.Arrays; -import java.util.Collections; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - import com.sun.syndication.feed.synd.SyndEntry; import com.sun.syndication.feed.synd.SyndFeed; import org.apache.archiva.metadata.model.ArtifactMetadata; @@ -34,6 +27,13 @@ import org.apache.archiva.rss.RssFeedGenerator; import org.codehaus.plexus.spring.PlexusInSpringTestCase; import org.easymock.MockControl; +import java.util.Arrays; +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + public class NewVersionsOfArtifactRssFeedProcessorTest extends PlexusInSpringTestCase { @@ -124,6 +124,7 @@ public class NewVersionsOfArtifactRssFeedProcessorTest ArtifactMetadata artifact = new ArtifactMetadata(); artifact.setNamespace( GROUP_ID ); artifact.setProject( ARTIFACT_ID ); + artifact.setProjectVersion( version ); artifact.setVersion( version ); artifact.setRepositoryId( TEST_REPO ); artifact.setId( ARTIFACT_ID + "-" + version + ".jar" ); |