use of org.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice in project tycho by eclipse.
the class FeatureRootAdvicePermissionsTest method testSpecificPermissionsButNoFiles.
@Test(expected = IllegalArgumentException.class)
public void testSpecificPermissionsButNoFiles() throws Exception {
Properties buildProperties = createBuildPropertiesWithDefaultRootFiles();
buildProperties.put("root." + LINUX_SPEC_FOR_PROPERTIES_KEY + ".permissions.644", "file2.txt");
IFeatureRootAdvice advice = createAdvice(buildProperties);
callGetDescriptorsForAllConfigurations(advice);
}
use of org.eclipse.equinox.p2.publisher.actions.IFeatureRootAdvice in project tycho by eclipse.
the class FeatureRootAdviceTest method testDescriptorIsNullIfNoRootFiles.
@Test
public void testDescriptorIsNullIfNoRootFiles() throws Exception {
Properties buildProperties = createBuildPropertiesWithoutRootKeys();
IFeatureRootAdvice advice = createAdvice(buildProperties);
assertNull(advice.getDescriptor(GLOBAL_SPEC));
assertNull(advice.getDescriptor(LINUX_SPEC_FOR_ADVICE));
}
Aggregations