Search in sources :

Example 1 with InstallMode

use of org.eclipse.tycho.model.FeatureRef.InstallMode in project tycho by eclipse.

the class ProductConfigurationTest method testRemoveRootFeatures.

@Test
public void testRemoveRootFeatures() throws Exception {
    ProductConfiguration config = ProductConfiguration.read(getClass().getResourceAsStream("/product/rootFeatures.product"));
    config.removeRootInstalledFeatures();
    Map<String, InstallMode> modes = getInstallModes(config);
    assertThat(modes.get("org.eclipse.rcp"), is(InstallMode.include));
    assertThat(modes.get("org.eclipse.e4.rcp"), is(InstallMode.include));
    assertThat(modes.size(), is(2));
}
Also used : ProductConfiguration(org.eclipse.tycho.model.ProductConfiguration) InstallMode(org.eclipse.tycho.model.FeatureRef.InstallMode) Test(org.junit.Test)

Example 2 with InstallMode

use of org.eclipse.tycho.model.FeatureRef.InstallMode in project tycho by eclipse.

the class ProductConfigurationTest method testFeatureInstallMode.

@Test
public void testFeatureInstallMode() throws Exception {
    ProductConfiguration config = ProductConfiguration.read(getClass().getResourceAsStream("/product/rootFeatures.product"));
    Map<String, InstallMode> modes = getInstallModes(config);
    assertThat(modes.get("org.eclipse.rcp"), is(InstallMode.include));
    assertThat(modes.get("org.eclipse.e4.rcp"), is(InstallMode.include));
    assertThat(modes.get("org.eclipse.help"), is(InstallMode.root));
    assertThat(modes.get("org.eclipse.egit"), is(InstallMode.root));
    assertThat(modes.size(), is(4));
}
Also used : ProductConfiguration(org.eclipse.tycho.model.ProductConfiguration) InstallMode(org.eclipse.tycho.model.FeatureRef.InstallMode) Test(org.junit.Test)

Aggregations

InstallMode (org.eclipse.tycho.model.FeatureRef.InstallMode)2 ProductConfiguration (org.eclipse.tycho.model.ProductConfiguration)2 Test (org.junit.Test)2