public class RepositoryArtifactProviderTest extends CompositeArtifactProviderTestBase<IRawArtifactProvider>
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
expectedException |
private static ArtifactTransferPolicy |
TRANSFER_POLICY |
p2Context, rawTestSink, status, subject, testOutputStream, testSink| Constructor and Description |
|---|
RepositoryArtifactProviderTest() |
| Modifier and Type | Method and Description |
|---|---|
private static org.eclipse.equinox.p2.repository.artifact.IArtifactRepository |
createArtifactRepositoryMock() |
protected IRawArtifactProvider |
createCompositeArtifactProvider(java.net.URI... repositoryURLs) |
private static org.eclipse.core.runtime.IStatus |
errorWithRetry(java.lang.String message) |
void |
testGetArtifactErrorMessage() |
void |
testGetArtifactWhereOnlyFormatIsCorrupt() |
void |
testGetArtifactWherePreferredFormatIsCorrupt() |
void |
testGetArtifactWithInfiniteMirrorFailures() |
void |
testGetArtifactWithSomeMirrorFailures() |
void |
testGetRawArtifactErrorMessage() |
void |
testRepositoryLoadingFails() |
checkStatusAndSinkConsistency, checkStreamNotClosed, initContextAndSubject, testContainsArtifactDescriptor, testContainsKey, testGetArtifact, testGetArtifactDescriptors, testGetArtifactDescriptorsDoesNotReturnDuplicates, testGetArtifactFailsInAllAttempts, testGetArtifactOnlyAvailableInPackedRawFormat, testGetArtifactSucceedsInSecondAttempt, testGetArtifactToClosedSink, testGetArtifactToNonCanonicalSink, testGetArtifactWithNonRestartableSink, testGetCanonicalRawArtifact, testGetNonExistingArtifact, testGetNonExistingRawArtifact, testGetPackedRawArtifact, testGetRawArtifact, testGetRawArtifactSucceedsInSecondAttempt, testGetRawArtifactToClosedSink, testGetRawArtifactWithNonRestartableSink, testQuery, testQueryWithoutRepositories, testQueryWithSingleRepositoryprivate static final ArtifactTransferPolicy TRANSFER_POLICY
public org.junit.rules.ExpectedException expectedException
protected IRawArtifactProvider createCompositeArtifactProvider(java.net.URI... repositoryURLs) throws java.lang.Exception
createCompositeArtifactProvider in class CompositeArtifactProviderTestBase<IRawArtifactProvider>java.lang.Exceptionpublic void testRepositoryLoadingFails()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetArtifactErrorMessage()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetRawArtifactErrorMessage()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetArtifactWherePreferredFormatIsCorrupt()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetArtifactWhereOnlyFormatIsCorrupt()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetArtifactWithSomeMirrorFailures()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetArtifactWithInfiniteMirrorFailures()
throws java.lang.Exception
java.lang.Exceptionprivate static org.eclipse.equinox.p2.repository.artifact.IArtifactRepository createArtifactRepositoryMock()
private static org.eclipse.core.runtime.IStatus errorWithRetry(java.lang.String message)