diff options
author | Thomas Hallgren | 2010-02-05 22:07:01 +0000 |
---|---|---|
committer | Thomas Hallgren | 2010-02-05 22:07:01 +0000 |
commit | 9faaed06625f31f3e4f26f65c3cffe4e947604fd (patch) | |
tree | 162a1267d4429ff85e188de84970455c138abfa6 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/testserver/helper/AbstractTestServerClientCase.java | |
parent | e640f35a91169ce4ad67d674ba7b150b42450478 (diff) | |
download | rt.equinox.p2-9faaed06625f31f3e4f26f65c3cffe4e947604fd.tar.gz rt.equinox.p2-9faaed06625f31f3e4f26f65c3cffe4e947604fd.tar.xz rt.equinox.p2-9faaed06625f31f3e4f26f65c3cffe4e947604fd.zip |
299987 : Removal of p2 services in favor of always using an agent.
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/testserver/helper/AbstractTestServerClientCase.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/testserver/helper/AbstractTestServerClientCase.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/testserver/helper/AbstractTestServerClientCase.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/testserver/helper/AbstractTestServerClientCase.java index e1f59af8c..802d8cc34 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/testserver/helper/AbstractTestServerClientCase.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/testserver/helper/AbstractTestServerClientCase.java @@ -12,7 +12,10 @@ package org.eclipse.equinox.p2.tests.testserver.helper; import java.security.cert.Certificate; import junit.framework.*; +import org.eclipse.equinox.internal.p2.core.helpers.ServiceHelper; import org.eclipse.equinox.internal.provisional.p2.core.IServiceUI; +import org.eclipse.equinox.p2.core.IProvisioningAgent; +import org.eclipse.equinox.p2.tests.TestActivator; public class AbstractTestServerClientCase extends TestCase { @@ -37,6 +40,11 @@ public class AbstractTestServerClientCase extends TestCase { return "http://localhost:" + System.getProperty(TestServerController.PROP_TESTSERVER_PORT, "8080"); } + protected static IProvisioningAgent getAgent() { + //get the global agent for the currently running system + return (IProvisioningAgent) ServiceHelper.getService(TestActivator.getContext(), IProvisioningAgent.SERVICE_NAME); + } + protected void basicRun(TestResult result) { super.run(result); } |