public class ModuleArtifactRepositoryTest
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ModuleArtifactRepositoryTest.WriteSessionStub |
Modifier and Type | Field and Description |
---|---|
private static org.eclipse.equinox.internal.p2.metadata.ArtifactKey |
BINARY_ARTIFACT_KEY |
private static int |
BINARY_ARTIFACT_SIZE |
private static org.eclipse.equinox.p2.metadata.IArtifactKey |
BUNDLE_ARTIFACT_KEY |
private static int |
BUNDLE_ARTIFACT_SIZE |
private static java.io.File |
existingModuleDir |
P2Context |
p2Context |
private static org.eclipse.equinox.p2.metadata.IArtifactKey |
SOURCE_ARTIFACT_KEY |
private static int |
SOURCE_ARTIFACT_SIZE |
private ModuleArtifactRepository |
subject |
org.junit.rules.TemporaryFolder |
tempManager |
Constructor and Description |
---|
ModuleArtifactRepositoryTest() |
Modifier and Type | Method and Description |
---|---|
private static int |
artifactSizeOf(org.eclipse.equinox.p2.metadata.IArtifactKey artifactKey,
org.eclipse.equinox.p2.repository.artifact.IArtifactRepository subject) |
private static void |
generateBinaryTestFile(java.io.File file,
int size) |
private static void |
generateDefaultRepositoryArtifacts(java.io.File location) |
static void |
initBasicRepository() |
private org.eclipse.equinox.p2.repository.artifact.IArtifactRepository |
loadRepositoryViaAgent(java.io.File location) |
private org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor |
newDescriptor(org.eclipse.equinox.internal.p2.metadata.ArtifactKey artifactKey) |
void |
testCreateRepository() |
void |
testLoadRepository() |
void |
testLoadRepositoryWithFactory() |
void |
testLoadRepositoryWithMissingGAVProperties() |
void |
testPersistEmptyRepository() |
void |
testPersistRepository() |
void |
testReadingWithOtherDescriptorType() |
void |
testRemovingWithOtherDescriptorType() |
void |
testWriteToRepository() |
void |
testWriteToRepositoryViaStream() |
(package private) static void |
writeAndClose(java.io.OutputStream out,
int size) |
private static final org.eclipse.equinox.p2.metadata.IArtifactKey BUNDLE_ARTIFACT_KEY
private static final int BUNDLE_ARTIFACT_SIZE
private static final org.eclipse.equinox.p2.metadata.IArtifactKey SOURCE_ARTIFACT_KEY
private static final int SOURCE_ARTIFACT_SIZE
private static final org.eclipse.equinox.internal.p2.metadata.ArtifactKey BINARY_ARTIFACT_KEY
private static final int BINARY_ARTIFACT_SIZE
private static java.io.File existingModuleDir
public org.junit.rules.TemporaryFolder tempManager
public P2Context p2Context
private ModuleArtifactRepository subject
public static void initBasicRepository() throws java.lang.Exception
java.lang.Exception
public void testLoadRepository() throws java.lang.Exception
java.lang.Exception
public void testLoadRepositoryWithFactory() throws java.lang.Exception
java.lang.Exception
public void testLoadRepositoryWithMissingGAVProperties() throws java.lang.Exception
java.lang.Exception
public void testCreateRepository() throws java.lang.Exception
java.lang.Exception
public void testWriteToRepository() throws java.lang.Exception
java.lang.Exception
public void testWriteToRepositoryViaStream() throws java.lang.Exception
java.lang.Exception
public void testPersistEmptyRepository() throws java.lang.Exception
java.lang.Exception
public void testPersistRepository() throws java.lang.Exception
java.lang.Exception
public void testReadingWithOtherDescriptorType() throws java.lang.Exception
java.lang.Exception
public void testRemovingWithOtherDescriptorType() throws java.lang.Exception
java.lang.Exception
private org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor newDescriptor(org.eclipse.equinox.internal.p2.metadata.ArtifactKey artifactKey)
private static int artifactSizeOf(org.eclipse.equinox.p2.metadata.IArtifactKey artifactKey, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository subject)
private org.eclipse.equinox.p2.repository.artifact.IArtifactRepository loadRepositoryViaAgent(java.io.File location) throws org.eclipse.equinox.p2.core.ProvisionException
org.eclipse.equinox.p2.core.ProvisionException
static void writeAndClose(java.io.OutputStream out, int size) throws java.io.IOException
java.io.IOException
private static void generateDefaultRepositoryArtifacts(java.io.File location) throws java.io.IOException
java.io.IOException
private static void generateBinaryTestFile(java.io.File file, int size) throws java.io.IOException
java.io.IOException