mirror of https://github.com/apache/archiva.git
fix mocks compilation
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1400903 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
69a9edb4c4
commit
f1d408f40e
|
@ -207,4 +207,11 @@ public class TestMetadataRepository
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public void removeProject( String repositoryId, String namespace, String projectId )
|
||||
throws MetadataRepositoryException
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -267,6 +267,13 @@ public class MockRepositorySessionFactory
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public void removeProject( String repositoryId, String namespace, String projectId )
|
||||
throws MetadataRepositoryException
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
@ -212,4 +212,11 @@ public class TestMetadataRepository
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public void removeProject( String repositoryId, String namespace, String projectId )
|
||||
throws MetadataRepositoryException
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -267,6 +267,13 @@ public class MockRepositorySessionFactory
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public void removeProject( String repositoryId, String namespace, String projectId )
|
||||
throws MetadataRepositoryException
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
@ -267,6 +267,13 @@ public class MockRepositorySessionFactory
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public void removeProject( String repositoryId, String namespace, String projectId )
|
||||
throws MetadataRepositoryException
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -247,4 +247,11 @@ public class TestMetadataRepository
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public void removeProject( String repositoryId, String namespace, String projectId )
|
||||
throws MetadataRepositoryException
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
}
|
|
@ -208,4 +208,11 @@ public class TestMetadataRepository
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public void removeProject( String repositoryId, String namespace, String projectId )
|
||||
throws MetadataRepositoryException
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -223,4 +223,11 @@ public class TestMetadataRepository
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public void removeProject( String repositoryId, String namespace, String projectId )
|
||||
throws MetadataRepositoryException
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue