public abstract class CompositeArtifactProviderTestBase<T extends IRawArtifactProvider>
extends java.lang.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(java.net.URI... repositoryURLs) throws java.lang.Exception
java.lang.Exception
public void initContextAndSubject() throws java.lang.Exception
java.lang.Exception
public void checkStreamNotClosed()
public void checkStatusAndSinkConsistency()
public void testContainsKey()
public void testQuery()
public void testQueryWithSingleRepository() throws java.lang.Exception
java.lang.Exception
public void testQueryWithoutRepositories() throws java.lang.Exception
java.lang.Exception
public void testGetArtifact() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactOnlyAvailableInPackedRawFormat() throws java.lang.Exception
java.lang.Exception
public void testGetNonExistingArtifact() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactSucceedsInSecondAttempt() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactFailsInAllAttempts() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactWithNonRestartableSink() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactToClosedSink() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactToNonCanonicalSink() throws java.lang.Exception
java.lang.Exception
public void testGetRawArtifact() throws java.lang.Exception
java.lang.Exception
public void testGetNonExistingRawArtifact() throws java.lang.Exception
java.lang.Exception
public void testGetRawArtifactSucceedsInSecondAttempt() throws java.lang.Exception
java.lang.Exception
public void testGetRawArtifactWithNonRestartableSink() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactDescriptors()
public void testGetRawArtifactToClosedSink() throws java.lang.Exception
java.lang.Exception
public void testGetArtifactDescriptorsDoesNotReturnDuplicates()
public void testContainsArtifactDescriptor()
public void testGetCanonicalRawArtifact() throws java.lang.Exception
java.lang.Exception
public void testGetPackedRawArtifact() throws java.lang.Exception
java.lang.Exception