public final class P2Context
extends org.junit.rules.ExternalResource
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(Class<T> type) |
protected void before() throws Throwable
before
in class org.junit.rules.ExternalResource
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(Class<T> type) throws org.eclipse.equinox.p2.core.ProvisionException
org.eclipse.equinox.p2.core.ProvisionException
Copyright © 2008–2020 Eclipse Foundation. All rights reserved.