public class RepositoryTest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static org.eclipse.equinox.p2.core.IProvisioningAgent |
agent |
private static org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryManager |
artifactRM |
private static org.osgi.framework.BundleContext |
bc |
(package private) static java.lang.String |
ECLIPSE_DIR |
(package private) static java.lang.String |
JAVADIR |
private static org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager |
metadataRM |
(package private) static java.lang.String |
NAMESPACE |
private java.nio.file.Path |
tempDir |
org.junit.rules.TestName |
testName |
| Constructor and Description |
|---|
RepositoryTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
beforeClass()
All access to p2 services happen through the provisioning agent.
|
void |
createTestTempDir() |
private void |
delete(java.nio.file.Path path) |
protected org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryManager |
getArtifactRepoManager() |
protected org.osgi.framework.BundleContext |
getBundleContext() |
protected org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager |
getMetadataRepoManager() |
protected java.nio.file.Path |
getTempDir() |
protected void |
writeSclConfig(java.nio.file.Path confPath,
java.lang.String name,
java.nio.file.Path prefix) |
static final java.lang.String NAMESPACE
static final java.lang.String JAVADIR
static final java.lang.String ECLIPSE_DIR
private static org.osgi.framework.BundleContext bc
private static org.eclipse.equinox.p2.core.IProvisioningAgent agent
private static org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager metadataRM
private static org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryManager artifactRM
private java.nio.file.Path tempDir
public org.junit.rules.TestName testName
public static void beforeClass()
throws java.lang.Exception
java.lang.Exception - If the provisioning agent could not be created.public void createTestTempDir()
throws java.lang.Exception
java.lang.Exceptionprivate void delete(java.nio.file.Path path)
throws java.io.IOException
java.io.IOExceptionprotected org.osgi.framework.BundleContext getBundleContext()
protected org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager getMetadataRepoManager()
protected org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryManager getArtifactRepoManager()
protected java.nio.file.Path getTempDir()
protected void writeSclConfig(java.nio.file.Path confPath,
java.lang.String name,
java.nio.file.Path prefix)
throws java.lang.Exception
java.lang.Exception