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, testQueryWithSingleRepository
private 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.Exception
public void testRepositoryLoadingFails() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactErrorMessage() throws java.lang.Exception
java.lang.Exception
public void testGetRawArtifactErrorMessage() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactWherePreferredFormatIsCorrupt() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactWhereOnlyFormatIsCorrupt() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactWithSomeMirrorFailures() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactWithInfiniteMirrorFailures() throws java.lang.Exception
java.lang.Exception
private static org.eclipse.equinox.p2.repository.artifact.IArtifactRepository createArtifactRepositoryMock()
private static org.eclipse.core.runtime.IStatus errorWithRetry(java.lang.String message)