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));
}
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));
}
Aggregations