public final class P2Context
extends org.junit.rules.ExternalResource
Modifier and Type | Field and Description |
---|---|
private org.eclipse.equinox.p2.core.IProvisioningAgent |
agent |
private org.junit.rules.TemporaryFolder |
tempManager |
Constructor and Description |
---|
P2Context() |
Modifier and Type | Method and Description |
---|---|
protected void |
after() |
protected void |
before() |
org.eclipse.equinox.p2.core.IProvisioningAgent |
getAgent()
Returns an instance of an
IProvisioningAgent . |
<T> T |
getService(java.lang.Class<T> type) |
private final org.junit.rules.TemporaryFolder tempManager
private org.eclipse.equinox.p2.core.IProvisioningAgent agent
protected void before() throws java.lang.Throwable
before
in class org.junit.rules.ExternalResource
java.lang.Throwable
protected void after()
after
in class org.junit.rules.ExternalResource
public org.eclipse.equinox.p2.core.IProvisioningAgent getAgent() throws org.eclipse.equinox.p2.core.ProvisionException
IProvisioningAgent
. If this instance acts as a JUnit
Rule
, there is a separate instance for each test.org.eclipse.equinox.p2.core.ProvisionException
public <T> T getService(java.lang.Class<T> type) throws org.eclipse.equinox.p2.core.ProvisionException
org.eclipse.equinox.p2.core.ProvisionException