summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rss
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-10-22 14:50:49 +0000
committerOlivier Lamy <olamy@apache.org>2012-10-22 14:50:49 +0000
commitf1d408f40e38b1fdc88730cb3eb45e3bf6ac27fa (patch)
tree628ecdfee3ccfd4e32cb6068b088d74b12610229 /archiva-modules/archiva-web/archiva-rss
parent69a9edb4c49e7f2a6bf21c3ea810aba3d0533205 (diff)
downloadarchiva-f1d408f40e38b1fdc88730cb3eb45e3bf6ac27fa.tar.gz
archiva-f1d408f40e38b1fdc88730cb3eb45e3bf6ac27fa.zip
fix mocks compilation
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1400903 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rss')
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java20
1 files changed, 13 insertions, 7 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 5978c7c98..fb867010e 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
@@ -31,6 +31,7 @@ import org.apache.archiva.metadata.repository.MetadataRepository;
import org.apache.archiva.metadata.repository.MetadataRepositoryException;
import org.apache.archiva.metadata.repository.MetadataResolutionException;
import org.apache.archiva.rss.RssFeedGenerator;
+import org.apache.archiva.test.utils.ArchivaBlockJUnit4ClassRunner;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -43,9 +44,8 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TimeZone;
-import org.apache.archiva.test.utils.ArchivaBlockJUnit4ClassRunner;
-@RunWith( ArchivaBlockJUnit4ClassRunner.class )
+@RunWith (ArchivaBlockJUnit4ClassRunner.class)
public class NewArtifactsRssFeedProcessorTest
extends TestCase
{
@@ -67,7 +67,7 @@ public class NewArtifactsRssFeedProcessorTest
metadataRepository = new MetadataRepositoryMock();
}
- @SuppressWarnings( "unchecked" )
+ @SuppressWarnings ("unchecked")
@Test
public void testProcess()
throws Exception
@@ -99,15 +99,15 @@ public class NewArtifactsRssFeedProcessorTest
assertEquals( TEST_REPO, metadataRepository.getRepoId() );
assertTrue( feed.getTitle().equals( "New Artifacts in Repository 'test-repo'" ) );
- assertTrue( feed.getDescription().equals(
- "New artifacts found in repository 'test-repo' during repository scan." ) );
+ assertTrue(
+ feed.getDescription().equals( "New artifacts found in repository 'test-repo' during repository scan." ) );
assertTrue( feed.getLanguage().equals( "en-us" ) );
assertTrue( feed.getPublishedDate().equals( whenGathered ) );
List<SyndEntry> entries = feed.getEntries();
assertEquals( entries.size(), 1 );
- assertTrue( entries.get( 0 ).getTitle().equals(
- "New Artifacts in Repository 'test-repo' as of " + whenGathered ) );
+ assertTrue(
+ entries.get( 0 ).getTitle().equals( "New Artifacts in Repository 'test-repo' as of " + whenGathered ) );
assertTrue( entries.get( 0 ).getPublishedDate().equals( whenGathered ) );
}
@@ -286,6 +286,12 @@ public class NewArtifactsRssFeedProcessorTest
throw new UnsupportedOperationException();
}
+ public void removeProject( String repositoryId, String namespace, String projectId )
+ throws MetadataRepositoryException
+ {
+ throw new UnsupportedOperationException();
+ }
+
public void setFrom( Date from )
{
this.from = from;