Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7e9bb398734e45279ac588daedd7a1fa992e518f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package org.eclipse.equinox.p2.tests.artifact.optimizers;

import junit.framework.TestCase;
import org.eclipse.equinox.internal.p2.artifact.optimizers.Activator;
import org.eclipse.equinox.internal.p2.core.helpers.ServiceHelper;
import org.eclipse.equinox.p2.core.IProvisioningAgent;

public abstract class OptimizerTest extends TestCase {
	public OptimizerTest(String name) {
		super(name);
	}

	public OptimizerTest() {
		super();
	}

	protected static IProvisioningAgent getAgent() {
		//get the global agent for the currently running system
		return (IProvisioningAgent) ServiceHelper.getService(Activator.getContext(), IProvisioningAgent.SERVICE_NAME);
	}

}

Back to the top