public class ModuleMetadataRepositoryTest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.eclipse.equinox.p2.metadata.IVersionedId |
BUNDLE_UNIT |
private static java.io.File |
moduleDir |
P2Context |
p2Context |
private static org.eclipse.equinox.p2.metadata.IVersionedId |
SOURCE_UNIT |
private org.eclipse.equinox.p2.repository.metadata.IMetadataRepository |
subject |
org.junit.rules.TemporaryFolder |
tempFolder |
Constructor and Description |
---|
ModuleMetadataRepositoryTest() |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
createIUs(org.eclipse.equinox.p2.metadata.IVersionedId... unitIds) |
static void |
init() |
private org.eclipse.equinox.p2.repository.metadata.IMetadataRepository |
loadRepositoryViaAgent(java.io.File location) |
void |
testCreateRepository() |
void |
testLoadRepository() |
void |
testLoadRepositoryWithFactory() |
void |
testPersistEmptyRepository() |
void |
testPersistModifiedRepository() |
void |
testUpdateRepository() |
private static java.util.List<org.eclipse.equinox.p2.metadata.IVersionedId> |
unitsIn(org.eclipse.equinox.p2.repository.metadata.IMetadataRepository repo) |
private static final org.eclipse.equinox.p2.metadata.IVersionedId BUNDLE_UNIT
private static final org.eclipse.equinox.p2.metadata.IVersionedId SOURCE_UNIT
private static java.io.File moduleDir
public org.junit.rules.TemporaryFolder tempFolder
public P2Context p2Context
private org.eclipse.equinox.p2.repository.metadata.IMetadataRepository subject
public static void init() 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 testCreateRepository() throws java.lang.Exception
java.lang.Exception
public void testUpdateRepository() throws java.lang.Exception
java.lang.Exception
public void testPersistEmptyRepository() throws java.lang.Exception
java.lang.Exception
public void testPersistModifiedRepository() throws java.lang.Exception
java.lang.Exception
private static java.util.List<org.eclipse.equinox.p2.metadata.IVersionedId> unitsIn(org.eclipse.equinox.p2.repository.metadata.IMetadataRepository repo)
private static java.util.List<org.eclipse.equinox.p2.metadata.IInstallableUnit> createIUs(org.eclipse.equinox.p2.metadata.IVersionedId... unitIds)
private org.eclipse.equinox.p2.repository.metadata.IMetadataRepository loadRepositoryViaAgent(java.io.File location) throws org.eclipse.equinox.p2.core.ProvisionException
org.eclipse.equinox.p2.core.ProvisionException