blob: 172e819b4f72ab8a1c4e9683742aced5e361d030 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007 IBM Corporation and others. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: IBM Corporation - initial API and implementation
******************************************************************************/
package org.eclipse.equinox.p2.tests.director;
import org.eclipse.equinox.p2.director.IDirector;
import org.eclipse.equinox.p2.engine.Profile;
import org.eclipse.equinox.p2.metadata.IInstallableUnit;
import org.eclipse.equinox.p2.tests.AbstractProvisioningTest;
import org.osgi.framework.Version;
public class Bug203637 extends AbstractProvisioningTest {
public void test() {
IDirector d = createDirector();
Profile profile = new Profile("TestProfile." + getName());
IInstallableUnit a1 = createIU("A", new Version(1, 0, 0), true);
assertOK(d.replace(new IInstallableUnit[0], new IInstallableUnit[] {a1}, profile, null));
}
}