public abstract class CompositeArtifactProviderTestBase<T extends IRawArtifactProvider> extends Object
| Modifier and Type | Field and Description |
|---|---|
P2Context |
p2Context |
protected ProbeRawArtifactSink |
rawTestSink |
protected org.eclipse.core.runtime.IStatus |
status |
protected T |
subject |
protected ProbeOutputStream |
testOutputStream |
protected ProbeArtifactSink |
testSink |
| Constructor and Description |
|---|
CompositeArtifactProviderTestBase() |
public P2Context p2Context
protected ProbeArtifactSink testSink
protected ProbeRawArtifactSink rawTestSink
protected ProbeOutputStream testOutputStream
protected T extends IRawArtifactProvider subject
protected org.eclipse.core.runtime.IStatus status
protected abstract T createCompositeArtifactProvider(URI... repositoryURLs) throws Exception
Exceptionpublic void checkStreamNotClosed()
public void checkStatusAndSinkConsistency()
public void testContainsKey()
public void testQuery()
public void testQueryWithSingleRepository()
throws Exception
Exceptionpublic void testQueryWithoutRepositories()
throws Exception
Exceptionpublic void testGetArtifactOnlyAvailableInPackedRawFormat()
throws Exception
Exceptionpublic void testGetNonExistingArtifact()
throws Exception
Exceptionpublic void testGetArtifactSucceedsInSecondAttempt()
throws Exception
Exceptionpublic void testGetArtifactFailsInAllAttempts()
throws Exception
Exceptionpublic void testGetArtifactWithNonRestartableSink()
throws Exception
Exceptionpublic void testGetArtifactToClosedSink()
throws Exception
Exceptionpublic void testGetArtifactToNonCanonicalSink()
throws Exception
Exceptionpublic void testGetNonExistingRawArtifact()
throws Exception
Exceptionpublic void testGetRawArtifactSucceedsInSecondAttempt()
throws Exception
Exceptionpublic void testGetRawArtifactWithNonRestartableSink()
throws Exception
Exceptionpublic void testGetArtifactDescriptors()
public void testGetRawArtifactToClosedSink()
throws Exception
Exceptionpublic void testGetArtifactDescriptorsDoesNotReturnDuplicates()
public void testContainsArtifactDescriptor()
public void testGetCanonicalRawArtifact()
throws Exception
ExceptionCopyright © 2008-2015 Eclipse Foundation. All Rights Reserved.